Fixed the return code for RAND_egd_bytes.
authorganesh <ganeshbhambarkar@gmail.com>
Thu, 10 Nov 2016 11:16:43 +0000 (16:46 +0530)
committerRichard Levitte <levitte@openssl.org>
Tue, 24 Jan 2017 13:39:20 +0000 (14:39 +0100)
commit3ed93c863374125296954edcbc595599adbd07ea
tree9291c5ca74ef7b7a28ed8f9eef550df319e9fea8
parent1381684daf8800487b48a70cd634f433b1d6366f
Fixed the return code for RAND_egd_bytes.

According to the documentation, the return code should be -1 when
RAND_status does not return 1.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1886)
crypto/rand/rand_egd.c