Typo, setting the first element of nids[] to NULL instead of setting

*cnids.
This commit is contained in:
Richard Levitte 2004-06-15 11:46:06 +00:00
parent 5e86220660
commit 3e00d6c4bb

View File

@ -260,7 +260,7 @@ get_cryptodev_ciphers(const int **cnids)
int fd, i, count = 0;
if ((fd = get_dev_crypto()) < 0) {
*nids = NULL;
*cnids = NULL;
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;
*cnids = NULL;
return (0);
}
memset(&sess, 0, sizeof(sess));