diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-07-09 00:53:45 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-07-09 00:53:45 +0000 |
commit | 5ba4bf35c5c596b86b56bde5977d252900367cad (patch) | |
tree | 947b00066cc387a43e1b547f1aa0f431b5f3eed5 /crypto/lhash | |
parent | aa93b18c2c1f9913deb52c12271e294e7aea5265 (diff) | |
download | openssl-5ba4bf35c5c596b86b56bde5977d252900367cad.tar.gz |
New functions to enumerate digests and ciphers.
Diffstat (limited to 'crypto/lhash')
-rw-r--r-- | crypto/lhash/lhash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index 55cb05579b..373c72dcb6 100644 --- 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--) |