From: Quentin Balland Date: Thu, 17 Sep 2020 15:31:23 +0000 (+0200) Subject: easy_reset: clear retry counter X-Git-Tag: curl-7_73_0~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7921b41ce1b0d8bf8ebe42456116c6b2fece485d;p=thirdparty%2Fcurl.git easy_reset: clear retry counter Closes #5975 Fixes #5974 --- diff --git a/lib/easy.c b/lib/easy.c index 4da26f914b..87f9b0d99f 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -969,6 +969,7 @@ void curl_easy_reset(struct Curl_easy *data) data->progress.flags |= PGRS_HIDE; data->state.current_speed = -1; /* init to negative == impossible */ + data->state.retrycount = 0; /* reset the retry counter */ /* zero out authentication data: */ memset(&data->state.authhost, 0, sizeof(struct auth));