diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-11-20 23:22:14 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-11-21 21:59:35 +0100 |
commit | c947fa492ea8d727929d02605a41979cfff7b261 (patch) | |
tree | aaf86f0351ee825d667baa9029e74dd3971289e7 /test | |
parent | 0a2a5d26cea54f490474a366100cf4860a54e030 (diff) |
Make async_read and async_write return -1 on failure.
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #1966
Diffstat (limited to 'test')
-rw-r--r-- | test/asynciotest.c | 4 |
1 files 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); |