Ensure that BIO_read_ex() and BIO_write_ex() only return 0 or 1
authorMatt Caswell <matt@openssl.org>
Fri, 21 Oct 2016 12:07:06 +0000 (13:07 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:48:54 +0000 (09:48 +0100)
commitbb5310bed5ab14747cad1f6a57aa3b075ca4af65
treefcf08430091a7000c5de143b4b5e211c18680b04
parent7f5f01cf538a01879805d22cb9a92047d1d97b19
Ensure that BIO_read_ex() and BIO_write_ex() only return 0 or 1

They should return 0 for a failure (retryable or not), and 1 for a success.

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