summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-01-26 14:34:45 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-01-26 14:34:45 +0000
commit0abc02a5fb2d9a8ad6d0c7c233f67a4640c7c4a6 (patch)
treeb8459f68886a9ee8279fbe76427958dcd9a08bea /lib
parent0dc88f6dd7dac7176a8e5def8be9a2f50dfd410c (diff)
on error set correct pointer to NULL.
From phk@freebsd.org ok markus@
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/engine/hw_cryptodev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/engine/hw_cryptodev.c b/lib/libssl/src/crypto/engine/hw_cryptodev.c
index d12d23d9fc2..75a56058ca0 100644
--- a/lib/libssl/src/crypto/engine/hw_cryptodev.c
+++ b/lib/libssl/src/crypto/engine/hw_cryptodev.c
@@ -239,7 +239,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));
@@ -305,7 +305,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));