Commit 5625567f authored by Bernd Edlinger's avatar Bernd Edlinger Committed by Rich Salz
Browse files

Fix another possible crash in rsa_ossl_mod_exp.

parent fb0a6412
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -608,6 +608,8 @@ static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
    r1 = BN_CTX_get(ctx);
    m1 = BN_CTX_get(ctx);
    vrfy = BN_CTX_get(ctx);
    if (vrfy == NULL)
        goto err;

    {
        BIGNUM *p = BN_new(), *q = BN_new();