From 7921b41ce1b0d8bf8ebe42456116c6b2fece485d Mon Sep 17 00:00:00 2001 From: Quentin Balland Date: Thu, 17 Sep 2020 17:31:23 +0200 Subject: [PATCH] easy_reset: clear retry counter Closes #5975 Fixes #5974 --- lib/easy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/easy.c b/lib/easy.c index 4da26f914..87f9b0d99 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));