Skip to content

Commit

Permalink
openssl: make ossl_send return CURLE_OK better
Browse files Browse the repository at this point in the history
Previously it only returned a CURLcode for errors, which is when it
returns a different size than what was passed in to it.

The http2 code only checked the curlcode and thus failed.
  • Loading branch information
bagder committed Jul 31, 2014
1 parent 05e8122 commit b9f6ca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/vtls/openssl.c
Expand Up @@ -2752,6 +2752,7 @@ static ssize_t ossl_send(struct connectdata *conn,
*curlcode = CURLE_SEND_ERROR;
return -1;
}
*curlcode = CURLE_OK;
return (ssize_t)rc; /* number of bytes */
}

Expand Down

0 comments on commit b9f6ca1

Please sign in to comment.