mirror of
https://github.com/curl/curl.git
synced 2026-07-30 22:48:03 +03:00
netrc: cache the netrc file in memory
So that on redirects etc it does not reread the file but just parses it again. Reported-by: Pierre-Etienne Meunier Fixes #15248 Closes #15259
This commit is contained in:
parent
962097b8dd
commit
3b43a05e00
6 changed files with 298 additions and 194 deletions
|
|
@ -757,6 +757,8 @@ static CURLcode multi_done(struct Curl_easy *data,
|
|||
mdctx.premature = premature;
|
||||
Curl_cpool_do_locked(data, data->conn, multi_done_locked, &mdctx);
|
||||
|
||||
/* flush the netrc cache */
|
||||
Curl_netrc_cleanup(&data->state.netrc);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue