summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-01-14 11:06:43 +0000
committerMatt Caswell <matt@openssl.org>2019-01-15 11:29:40 +0000
commit0a5bda639f8fd59e15051cf757708e3b94bcf399 (patch)
treed9ee93c6e636c85aacd83e681d1f715ebbf25853 /crypto
parente26f653defd08334ebfa517b6715a338f543fbf1 (diff)
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)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/srp/srp_vfy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/srp/srp_vfy.c b/crypto/srp/srp_vfy.c
index 4ed94b7fb2..7e32f096d0 100644
--- a/crypto/srp/srp_vfy.c
+++ b/crypto/srp/srp_vfy.c
@@ -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)