summaryrefslogtreecommitdiffstats
path: root/crypto/srp
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:35:08 +0000
commitd42c356882229765c5a502c32656c49eefcce7b4 (patch)
treedf58646b524f934b017da58635f08f46a45f3a0a /crypto/srp
parentbbcfd60e388ab9aa244d652453b52ff490be9b27 (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) (cherry picked from commit 0a5bda639f8fd59e15051cf757708e3b94bcf399)
Diffstat (limited to 'crypto/srp')
-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 17b35c00f9..1c405128c0 100644
--- a/crypto/srp/srp_vfy.c
+++ b/crypto/srp/srp_vfy.c
@@ -691,6 +691,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)