diff options
Diffstat (limited to 'crypto/jpake')
-rw-r--r-- | crypto/jpake/jpake.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/jpake/jpake.c b/crypto/jpake/jpake.c index 8e4b633ccc..424929471f 100644 --- 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); |