mirror of
https://github.com/openssl/openssl.git
synced 2024-11-23 18:13:39 +08:00
Check a return value in the SRP code
Spotted by OSTIF audit Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8019)
This commit is contained in:
parent
e26f653def
commit
0a5bda639f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user