diff options
author | 2005-01-26 14:34:44 +0000 | |
---|---|---|
committer | 2005-01-26 14:34:44 +0000 | |
commit | e0a4812ffa3b3d85c9d0b761238061e36dddfe46 (patch) | |
tree | 8c7e8251e25f65f179ebc7c9c6c531a06abc2816 /lib/libssl/src/crypto/engine/hw_cryptodev.c | |
parent | add the Belkin F5D6050 802.11b Wireless Device. from netbsd (diff) | |
download | wireguard-openbsd-e0a4812ffa3b3d85c9d0b761238061e36dddfe46.tar.xz wireguard-openbsd-e0a4812ffa3b3d85c9d0b761238061e36dddfe46.zip |
on error set correct pointer to NULL.
From phk@freebsd.org
ok markus@
Diffstat (limited to 'lib/libssl/src/crypto/engine/hw_cryptodev.c')
-rw-r--r-- | lib/libssl/src/crypto/engine/hw_cryptodev.c | 4 |
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)); |