summaryrefslogtreecommitdiff
path: root/lib/libcrypto/engine
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
commitf44ceb323ff8eb5183842ffc663576a806f9b7fe (patch)
treeef8e284ead3082bda9e566058343b4a75aa61d17 /lib/libcrypto/engine
parentbb0562a3af7f6e59dd6088920be85e4a65cf9252 (diff)
on error set correct pointer to NULL.
From phk@freebsd.org ok markus@
Diffstat (limited to 'lib/libcrypto/engine')
-rw-r--r--lib/libcrypto/engine/hw_cryptodev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/engine/hw_cryptodev.c b/lib/libcrypto/engine/hw_cryptodev.c
index d12d23d9fc2..75a56058ca0 100644
--- a/lib/libcrypto/engine/hw_cryptodev.c
+++ b/lib/libcrypto/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));