diff options
author | Adam Langley <agl@chromium.org> | 2014-06-20 23:00:00 +0400 |
---|---|---|
committer | Adam Langley <agl@chromium.org> | 2014-06-21 00:17:39 +0400 |
commit | 33685b82ec58bf6fc036fd6398171b897fe4fd5a (patch) | |
tree | c9c21fe5b19820db7757040364dd520215fd63c8 /crypto | |
parent | e0ddf2706a99598252d65a87ff1f626e096272b0 (diff) |
dh/check.c: check BN_CTX_get's return value.
(Imported from upstream's fe69e6be6e551c04d9d6a186c7fee1e635313ca6)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/dh/check.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/dh/check.c b/crypto/dh/check.c index f5099d5b..06af6f25 100644 --- a/crypto/dh/check.c +++ b/crypto/dh/check.c @@ -110,6 +110,9 @@ int DH_check(const DH *dh, int *ret) { } BN_CTX_start(ctx); t1 = BN_CTX_get(ctx); + if (t1 == NULL) { + goto err; + } t2 = BN_CTX_get(ctx); if (t2 == NULL) { goto err; |