Skip to content

Commit

Permalink
dh_check.c: check BN_CTX_get's return value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Polyakov committed Mar 6, 2014
1 parent 687403f commit 53e5161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/dh/dh_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ int DH_check(const DH *dh, int *ret)
if (ctx == NULL) goto err;
BN_CTX_start(ctx);
t1=BN_CTX_get(ctx);
if (t1 == NULL) goto err;
t2=BN_CTX_get(ctx);
if (t2 == NULL) goto err;

Expand Down

0 comments on commit 53e5161

Please sign in to comment.