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:40:45 +0000 (14:40 +0100)
commit03f3575c39cfc81552ee05a93b856d3b69048114
tree27157c6aff155872110b863a0753e5ae5cb4d689
parent73ff84721302f20c56090886fe1fad4cf5544da2
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)
(cherry picked from commit 3ed93c863374125296954edcbc595599adbd07ea)
crypto/rand/rand_egd.c