diff options
Diffstat (limited to 'Cryptlib/Include/openssl/bn.h')
| -rw-r--r-- | Cryptlib/Include/openssl/bn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Cryptlib/Include/openssl/bn.h b/Cryptlib/Include/openssl/bn.h index 86264ae6..633d1b1f 100644 --- a/Cryptlib/Include/openssl/bn.h +++ b/Cryptlib/Include/openssl/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); \ } |
