From: Daniel Stenberg Date: Mon, 2 Feb 2004 14:49:10 +0000 (+0000) Subject: clear the sockerror if no error was returned X-Git-Tag: cares-1_1_0~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9eb6fc1fb6442644d7284a6d095f5bb9f0296840;p=curl clear the sockerror if no error was returned --- diff --git a/lib/sendf.c b/lib/sendf.c index c9eb62f5f..68bb21bed 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -428,6 +428,8 @@ int Curl_read(struct connectdata *conn, #endif return -1; } + else + conn->sockerror = 0; /* no error */ #ifdef USE_SSLEAY }