aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-08-01 00:01:02 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-08-01 00:01:02 +0200
commitb9f6ca1d3202ce36deea416d1f17bb6537f03600 (patch)
tree1e308335ca248e0da380c2a3f6e5d23199237ade
parent05e81222d4e7f036b79e397c74756a2e1856a7b7 (diff)
openssl: make ossl_send return CURLE_OK better
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.
-rw-r--r--lib/vtls/openssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 844b6e113..2ff425e0d 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -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 */
}