diff --git a/lib/sendf.c b/lib/sendf.c index 631c3f2a2f..ddc61c6b3c 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -212,6 +212,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd, failf(conn->data, "SSL_write() return error %d\n", err); return CURLE_WRITE_ERROR; } + bytes_written = rc; } else { #endif