Commit 0a5bda63 authored by Matt Caswell's avatar Matt Caswell
Browse files

Check a return value in the SRP code



Spotted by OSTIF audit

Reviewed-by: default avatarPaul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8019)
parent e26f653d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -707,6 +707,8 @@ int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt,
    }

    x = SRP_Calc_x(salttmp, user, pass);
    if (x == NULL)
        goto err;

    *verifier = BN_new();
    if (*verifier == NULL)