summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_err.c
diff options
context:
space:
mode:
authorjsing <>2015-02-19 06:10:29 +0000
committerjsing <>2015-02-19 06:10:29 +0000
commit62ebecd0e093eb1e8a47512de67da5c951069913 (patch)
treea2bee07c521bf3d450b8d9880388795bf6bb56c2 /src/lib/libssl/ssl_err.c
parent9105945305e8064b1b4c31e0c1810233f215dce5 (diff)
downloadopenbsd-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_err.c')
0 files changed, 0 insertions, 0 deletions