From c947fa492ea8d727929d02605a41979cfff7b261 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sun, 20 Nov 2016 23:22:14 +0100 Subject: [PATCH] Make async_read and async_write return -1 on failure. Reviewed-by: Matt Caswell GH: #1966 --- test/asynciotest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1