easy_reset: clear retry counter

Closes #5975
Fixes #5974
This commit is contained in:
Quentin Balland 2020-09-17 17:31:23 +02:00 committed by Daniel Stenberg
parent cc372af1e9
commit 7921b41ce1
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 0 deletions

View 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));