Fix BIO_eof() for BIO pairs
authorMatt Caswell <matt@openssl.org>
Mon, 9 May 2016 14:04:11 +0000 (15:04 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 9 May 2016 16:06:25 +0000 (17:06 +0100)
commitd516d7a94098a284e35dfcf62b81be0cc771e120
tree8a13144748890865adba9fc62ce7479105fa5e4e
parent2b4825d0bb6057e44717007a54797df72babdb7e
Fix BIO_eof() for BIO pairs

BIO_eof() was always returning true when using a BIO pair. It should only
be true if the peer BIO is empty and has been shutdown.

RT#1215

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 3105d695358d86c0f2a404b2b74a1870b941ce5e)
crypto/bio/bss_bio.c
doc/crypto/BIO_s_bio.pod