diff options
Diffstat (limited to 'crypto/openssl/crypto/bn/bn.h')
-rw-r--r-- | crypto/openssl/crypto/bn/bn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/bn/bn.h b/crypto/openssl/crypto/bn/bn.h index 86264ae..633d1b1 100644 --- a/crypto/openssl/crypto/bn/bn.h +++ b/crypto/openssl/crypto/bn/bn.h @@ -842,6 +842,8 @@ int RAND_pseudo_bytes(unsigned char *buf, int num); if (*(ftl--)) break; \ (a)->top = tmp_top; \ } \ + if ((a)->top == 0) \ + (a)->neg = 0; \ bn_pollute(a); \ } |