Commit 0afbcfd8 authored by Michael Kaufmann's avatar Michael Kaufmann
Browse files

curl_easy_reset: Also reset the authentication state

parent 5278462c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -981,6 +981,10 @@ void curl_easy_reset(struct Curl_easy *data)

  data->progress.flags |= PGRS_HIDE;
  data->state.current_speed = -1; /* init to negative == impossible */

  /* zero out authentication data: */
  memset(&data->state.authhost, 0, sizeof(struct auth));
  memset(&data->state.authproxy, 0, sizeof(struct auth));
}

/*