summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authorlteo <>2015-01-13 03:42:36 +0000
committerlteo <>2015-01-13 03:42:36 +0000
commit795d83c9c4201d149823ca18860fac61d5dc8b57 (patch)
tree6b562bb609f14f9bc9cc3957ac90c89fd7af742b /src/lib/libc/stdlib/rand.c
parentd8fbc422dcf8766c771862d297d34685d1e22165 (diff)
downloadopenbsd-795d83c9c4201d149823ca18860fac61d5dc8b57.tar.gz
openbsd-795d83c9c4201d149823ca18860fac61d5dc8b57.tar.bz2
openbsd-795d83c9c4201d149823ca18860fac61d5dc8b57.zip
Implement more thorough error checks:
- Check the return value of every relevant function call. - If BIO_new() returns NULL instead of a valid BIO, do not attempt to blindly use the NULL value as a BIO throughout the rest of the code. - Ensure that bio_out is freed by BIO_free_all() at the end of all error paths. ok doug@
Diffstat (limited to 'src/lib/libc/stdlib/rand.c')
0 files changed, 0 insertions, 0 deletions