提交 132fc532 编写于 作者: R Richard Levitte

Typo, setting the first element of nids[] to NULL instead of setting

*cnids.
上级 b3b67209
...@@ -260,7 +260,7 @@ get_cryptodev_ciphers(const int **cnids) ...@@ -260,7 +260,7 @@ get_cryptodev_ciphers(const int **cnids)
int fd, i, count = 0; int fd, i, count = 0;
if ((fd = get_dev_crypto()) < 0) { if ((fd = get_dev_crypto()) < 0) {
*nids = NULL; *cnids = NULL;
return (0); return (0);
} }
memset(&sess, 0, sizeof(sess)); memset(&sess, 0, sizeof(sess));
...@@ -299,7 +299,7 @@ get_cryptodev_digests(const int **cnids) ...@@ -299,7 +299,7 @@ get_cryptodev_digests(const int **cnids)
int fd, i, count = 0; int fd, i, count = 0;
if ((fd = get_dev_crypto()) < 0) { if ((fd = get_dev_crypto()) < 0) {
*nids = NULL; *cnids = NULL;
return (0); return (0);
} }
memset(&sess, 0, sizeof(sess)); memset(&sess, 0, sizeof(sess));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册