diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_word.c | 3 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bn/bn_word.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/libcrypto/bn/bn_word.c b/src/lib/libcrypto/bn/bn_word.c index 988e0ca7b3..ab858d70ff 100644 --- a/src/lib/libcrypto/bn/bn_word.c +++ b/src/lib/libcrypto/bn/bn_word.c | |||
| @@ -110,6 +110,9 @@ int BN_add_word(BIGNUM *a, BN_ULONG w) | |||
| 110 | BN_ULONG l; | 110 | BN_ULONG l; |
| 111 | int i; | 111 | int i; |
| 112 | 112 | ||
| 113 | if ((w & BN_MASK2) == 0) | ||
| 114 | return(1); | ||
| 115 | |||
| 113 | if (a->neg) | 116 | if (a->neg) |
| 114 | { | 117 | { |
| 115 | a->neg=0; | 118 | a->neg=0; |
diff --git a/src/lib/libssl/src/crypto/bn/bn_word.c b/src/lib/libssl/src/crypto/bn/bn_word.c index 988e0ca7b3..ab858d70ff 100644 --- a/src/lib/libssl/src/crypto/bn/bn_word.c +++ b/src/lib/libssl/src/crypto/bn/bn_word.c | |||
| @@ -110,6 +110,9 @@ int BN_add_word(BIGNUM *a, BN_ULONG w) | |||
| 110 | BN_ULONG l; | 110 | BN_ULONG l; |
| 111 | int i; | 111 | int i; |
| 112 | 112 | ||
| 113 | if ((w & BN_MASK2) == 0) | ||
| 114 | return(1); | ||
| 115 | |||
| 113 | if (a->neg) | 116 | if (a->neg) |
| 114 | { | 117 | { |
| 115 | a->neg=0; | 118 | a->neg=0; |
