summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Balland <quentin.balland@inait.ai>2020-09-17 17:31:23 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-18 07:59:24 +0200
commit7921b41ce1b0d8bf8ebe42456116c6b2fece485d (patch)
treeb3123bd489e25892d7fc00c561a0262f75929a63
parentcc372af1e9cd12d5dbb4d0380a47a8e017896da8 (diff)
downloadcurl-7921b41ce1b0d8bf8ebe42456116c6b2fece485d.tar.gz
easy_reset: clear retry counter
Closes #5975 Fixes #5974
-rw-r--r--lib/easy.c1
1 files changed, 1 insertions, 0 deletions
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));