]> git.ipfire.org Git - thirdparty/curl.git/commit
global_init: move the IPv6 works status bool to multi handle
authorDaniel Stenberg <daniel@haxx.se>
Sun, 26 Jan 2020 16:51:01 +0000 (17:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jan 2020 07:03:22 +0000 (08:03 +0100)
commit0b030a5b232bd9fc4fed90f0d1aaac69c189aa22
tree0ca314f27beda02318a970993b0e3e9cd1ebcd8d
parent872ea75acfe3405f1d3b18a07d70696c3d63a100
global_init: move the IPv6 works status bool to multi handle

Previously it was stored in a global state which contributed to
curl_global_init's thread unsafety. This boolean is now instead figured
out in curl_multi_init() and stored in the multi handle. Less effective,
but thread safe.

Closes #4851
lib/asyn-ares.c
lib/asyn-thread.c
lib/easy.c
lib/hostip.h
lib/hostip6.c
lib/multi.c
lib/multihandle.h
tests/data/test558