From: Kurt Roeckx Date: Sun, 20 Nov 2016 22:22:14 +0000 (+0100) Subject: Make async_read and async_write return -1 on failure. X-Git-Tag: OpenSSL_1_1_0d~112 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c947fa492ea8d727929d02605a41979cfff7b261;p=oweals%2Fopenssl.git Make async_read and async_write return -1 on failure. Reviewed-by: Matt Caswell GH: #1966 --- diff --git a/test/asynciotest.c b/test/asynciotest.c index 23d0907dc9..0d382d70f6 100644 --- a/test/asynciotest.c +++ b/test/asynciotest.c @@ -85,7 +85,7 @@ static int async_free(BIO *bio) static int async_read(BIO *bio, char *out, int outl) { struct async_ctrs *ctrs; - int ret = 0; + int ret = -1; BIO *next = BIO_next(bio); if (outl <= 0) @@ -120,7 +120,7 @@ static int async_read(BIO *bio, char *out, int outl) static int async_write(BIO *bio, const char *in, int inl) { struct async_ctrs *ctrs; - int ret = 0; + int ret = -1; size_t written = 0; BIO *next = BIO_next(bio);