mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:33:32 +03:00
duphandle: also init netrc
The netrc init was only done in the Curl_open, meaning that a duplicated
handle would not get inited properly.
Added test 2309 to verify. It does netrc auth with a duplicated handle.
Regression from 3b43a05e00
Reported-by: tranzystorekk on github
Fixes #15496
Closes #15503
This commit is contained in:
parent
9919149aef
commit
f5c616930b
5 changed files with 138 additions and 2 deletions
|
|
@ -940,6 +940,7 @@ CURL *curl_easy_duphandle(CURL *d)
|
|||
goto fail;
|
||||
|
||||
Curl_dyn_init(&outcurl->state.headerb, CURL_MAX_HTTP_HEADER);
|
||||
Curl_netrc_init(&outcurl->state.netrc);
|
||||
|
||||
/* the connection pool is setup on demand */
|
||||
outcurl->state.lastconnect_id = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue