summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/engine/hw_cryptodev.c4
-rw-r--r--src/lib/libssl/src/crypto/engine/hw_cryptodev.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c
index d12d23d9fc..75a56058ca 100644
--- a/src/lib/libcrypto/engine/hw_cryptodev.c
+++ b/src/lib/libcrypto/engine/hw_cryptodev.c
@@ -239,7 +239,7 @@ get_cryptodev_ciphers(const int **cnids)
239 int fd, i, count = 0; 239 int fd, i, count = 0;
240 240
241 if ((fd = get_dev_crypto()) < 0) { 241 if ((fd = get_dev_crypto()) < 0) {
242 *nids = NULL; 242 *cnids = NULL;
243 return (0); 243 return (0);
244 } 244 }
245 memset(&sess, 0, sizeof(sess)); 245 memset(&sess, 0, sizeof(sess));
@@ -305,7 +305,7 @@ get_cryptodev_digests(const int **cnids)
305 int fd, i, count = 0; 305 int fd, i, count = 0;
306 306
307 if ((fd = get_dev_crypto()) < 0) { 307 if ((fd = get_dev_crypto()) < 0) {
308 *nids = NULL; 308 *cnids = NULL;
309 return (0); 309 return (0);
310 } 310 }
311 memset(&sess, 0, sizeof(sess)); 311 memset(&sess, 0, sizeof(sess));
diff --git a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c
index d12d23d9fc..75a56058ca 100644
--- a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c
+++ b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c
@@ -239,7 +239,7 @@ get_cryptodev_ciphers(const int **cnids)
239 int fd, i, count = 0; 239 int fd, i, count = 0;
240 240
241 if ((fd = get_dev_crypto()) < 0) { 241 if ((fd = get_dev_crypto()) < 0) {
242 *nids = NULL; 242 *cnids = NULL;
243 return (0); 243 return (0);
244 } 244 }
245 memset(&sess, 0, sizeof(sess)); 245 memset(&sess, 0, sizeof(sess));
@@ -305,7 +305,7 @@ get_cryptodev_digests(const int **cnids)
305 int fd, i, count = 0; 305 int fd, i, count = 0;
306 306
307 if ((fd = get_dev_crypto()) < 0) { 307 if ((fd = get_dev_crypto()) < 0) {
308 *nids = NULL; 308 *cnids = NULL;
309 return (0); 309 return (0);
310 } 310 }
311 memset(&sess, 0, sizeof(sess)); 311 memset(&sess, 0, sizeof(sess));