summaryrefslogtreecommitdiffstats
path: root/src/crypto/lhash/lhash_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/lhash/lhash_test.c')
-rw-r--r--src/crypto/lhash/lhash_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/lhash/lhash_test.c b/src/crypto/lhash/lhash_test.c
index cf5e99b..63748e7 100644
--- a/src/crypto/lhash/lhash_test.c
+++ b/src/crypto/lhash/lhash_test.c
@@ -123,6 +123,9 @@ int main(int argc, char **argv) {
CRYPTO_library_init();
lh = lh_new(NULL, NULL);
+ if (lh == NULL) {
+ return 1;
+ }
for (i = 0; i < 100000; i++) {
unsigned action;