Chromium Code Reviews| Index: openssl/crypto/bn/bn_exp2.c |
| =================================================================== |
| --- openssl/crypto/bn/bn_exp2.c (revision 105093) |
| +++ openssl/crypto/bn/bn_exp2.c (working copy) |
| @@ -301,7 +301,8 @@ |
| r_is_one = 0; |
| } |
| } |
| - BN_from_montgomery(rr,r,mont,ctx); |
| + if (!BN_from_montgomery(rr,r,mont,ctx)) |
| + goto err; |
| ret=1; |
| err: |
| if ((in_mont == NULL) && (mont != NULL)) BN_MONT_CTX_free(mont); |