Commit c947fa49 authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

Make async_read and async_write return -1 on failure.



Reviewed-by: default avatarMatt Caswell <matt@openssl.org>

GH: #1966
parent 0a2a5d26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);