Fix incorrect OPENSSL_assert() usage.
authordoug <doug@openbsd.org>
Sat, 3 Jan 2015 18:07:29 +0000 (18:07 +0000)
committerdoug <doug@openbsd.org>
Sat, 3 Jan 2015 18:07:29 +0000 (18:07 +0000)
commit4d1221e52ac0c8e887480dace397394fac5adf2f
tree44b2f8a8a5786b4ba2f6b525bc09b56272c3557f
parentfd1fe9f9f1cfdd97aa16bc9383c2c69b52391aa7
Fix incorrect OPENSSL_assert() usage.

Instead of asserting, return an error code for I/O errors.  This is based
on OpenSSL commit 2521fcd8527008ceb3e4748f95b0ed4e2d70cfef.  Added checks
for two calloc()s while I'm here.

ok miod@
lib/libcrypto/bio/bss_dgram.c
lib/libssl/src/crypto/bio/bss_dgram.c