diff options
author | jsing <> | 2015-02-19 06:10:29 +0000 |
---|---|---|
committer | jsing <> | 2015-02-19 06:10:29 +0000 |
commit | 62ebecd0e093eb1e8a47512de67da5c951069913 (patch) | |
tree | a2bee07c521bf3d450b8d9880388795bf6bb56c2 /src/lib/libssl/ssl_stat.c | |
parent | 9105945305e8064b1b4c31e0c1810233f215dce5 (diff) | |
download | openbsd-62ebecd0e093eb1e8a47512de67da5c951069913.tar.gz openbsd-62ebecd0e093eb1e8a47512de67da5c951069913.tar.bz2 openbsd-62ebecd0e093eb1e8a47512de67da5c951069913.zip |
If BN_rand() or BN_pseudo_rand() are called with a NULL rnd argument,
BN_bin2bn() will helpfully allocate a BN which is then leaked. Avoid this
by explicitly checking for NULL at the start of the bnrand() function.
Fixes Coverity ID 78831.
ok miod@
Diffstat (limited to 'src/lib/libssl/ssl_stat.c')
0 files changed, 0 insertions, 0 deletions