]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy_reset: clear retry counter
authorQuentin Balland <quentin.balland@inait.ai>
Thu, 17 Sep 2020 15:31:23 +0000 (17:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Sep 2020 05:59:24 +0000 (07:59 +0200)
Closes #5975
Fixes #5974

lib/easy.c

index 4da26f914b486ad51adb0c1df345db0f6a5782d5..87f9b0d99f14bae6de6386495e3e43b8578a75a5 100644 (file)
@@ -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));