aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypto/rand/md_rand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index 6cab308..67ac5ac 100644
--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -212,6 +212,9 @@ static int ssleay_rand_add(const void *buf, int num, double add)
int do_not_lock;
int rv = 0;
+ if (!num)
+ return;
+
/*
* (Based on the rand(3) manpage)
*