Fix NULL vs 0 mixup.

This commit is contained in:
thorpej 2003-10-25 20:48:10 +00:00
parent 569efbf106
commit 1244cc6c62

View File

@ -261,7 +261,7 @@ get_cryptodev_ciphers(const int **cnids)
int fd, i, count = 0;
if ((fd = get_dev_crypto()) < 0) {
*nids = NULL;
*nids = 0;
return (0);
}
memset(&sess, 0, sizeof(sess));
@ -300,7 +300,7 @@ get_cryptodev_digests(const int **cnids)
int fd, i, count = 0;
if ((fd = get_dev_crypto()) < 0) {
*nids = NULL;
*nids = 0;
return (0);
}
memset(&sess, 0, sizeof(sess));