Typo, setting the first element of nids[] to NULL instead of setting
authorRichard Levitte <levitte@openssl.org>
Tue, 15 Jun 2004 11:46:06 +0000 (11:46 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 15 Jun 2004 11:46:06 +0000 (11:46 +0000)
*cnids.

crypto/engine/hw_cryptodev.c

index d4832310ea4ae3f245233ee19fb0bc11c9984d47..3e7fff1c1e1efdad04cab8d0a0b339abc090ca0d 100644 (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));