mirror of
https://github.com/curl/curl.git
synced 2026-08-11 00:30:56 +03:00
multi: probe for IPv6 functionality in multi_init()
In some legacy systems IPv6 might dynamically work/not work and thus curl needs to check/probe to see if it should indeed be used. This change moves the probe that checks for working IPv6 to the multi handle setup function instead of delaying it to when the first name resolve is performed. This avoids a later tricky error path if the socket cannot be created due to OOM. Closes #20383
This commit is contained in:
parent
4890074e68
commit
e286589c71
4 changed files with 31 additions and 29 deletions
|
|
@ -300,6 +300,9 @@ struct Curl_multi *Curl_multi_handle(uint32_t xfer_table_size,
|
|||
}
|
||||
#endif
|
||||
|
||||
if(Curl_probeipv6(multi))
|
||||
goto error;
|
||||
|
||||
return multi;
|
||||
|
||||
error:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue