projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New functions to enumerate digests and ciphers.
[openssl.git]
/
crypto
/
lhash
/
lhash.c
diff --git
a/crypto/lhash/lhash.c
b/crypto/lhash/lhash.c
index 55cb05579bc786600ddeb963ddf6a2106b5a7981..373c72dcb6f301c473cb1e35eae327dc3b1bd917 100644
(file)
--- a/
crypto/lhash/lhash.c
+++ b/
crypto/lhash/lhash.c
@@
-273,6
+273,9
@@
static void doall_util_fn(LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func,
int i;
LHASH_NODE *a,*n;
+ if (lh == NULL)
+ return;
+
/* reverse the order so we search from 'top to bottom'
* We were having memory leaks otherwise */
for (i=lh->num_nodes-1; i>=0; i--)