summaryrefslogtreecommitdiffstats
path: root/crypto/rand/md_rand.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-07 22:53:35 +0000
committerNils Larsch <nils@openssl.org>2005-04-07 22:53:35 +0000
commitf763e0b5ae74c67795d096c9029b5c61e891e68a (patch)
treeefcfbda8d8f60aa958c080a184b469e01e9e8713 /crypto/rand/md_rand.c
parenteb3eab20a86e3d06e949880e2a036a026dd1da91 (diff)
make sure error queue is totally emptied
PR: 359
Diffstat (limited to 'crypto/rand/md_rand.c')
-rw-r--r--crypto/rand/md_rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index 87fd9455e2..6e10f6ef67 100644
--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -520,7 +520,7 @@ static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num)
err = ERR_peek_error();
if (ERR_GET_LIB(err) == ERR_LIB_RAND &&
ERR_GET_REASON(err) == RAND_R_PRNG_NOT_SEEDED)
- (void)ERR_get_error();
+ ERR_clear_error();
}
return (ret);
}