Handle malloc failures in BIO_accept
authorMatt Caswell <matt@openssl.org>
Wed, 4 May 2016 09:38:02 +0000 (10:38 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 4 May 2016 12:42:14 +0000 (13:42 +0100)
commitad9a05621ac75b6b9db1e8856d7f434276b1a7af
tree748441437219540fb92f83bcb24acf6dbae02300
parentd5975c8d5a171551dd42ffa18ca12e84f29ad106
Handle malloc failures in BIO_accept

The old BIO_accept() function can encounter errors during malloc. We need
to ensure we properly clean up if that occurs.

GH Issue #817

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/bio/b_sock.c