projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JPAKE_CTX_new: check for NULL result when allocating ctx
[openssl.git]
/
crypto
/
jpake
/
jpake.c
diff --git
a/crypto/jpake/jpake.c
b/crypto/jpake/jpake.c
index 8e4b633ccc5310f85f2f242f73560e51f0c44260..424929471f84261e35c0a580f66d9ad2fb4738da 100644
(file)
--- a/
crypto/jpake/jpake.c
+++ b/
crypto/jpake/jpake.c
@@
-117,6
+117,8
@@
JPAKE_CTX *JPAKE_CTX_new(const char *name, const char *peer_name,
const BIGNUM *secret)
{
JPAKE_CTX *ctx = OPENSSL_malloc(sizeof *ctx);
+ if (ctx == NULL)
+ return NULL;
JPAKE_CTX_init(ctx, name, peer_name, p, g, q, secret);