]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Initialize cURL before starting any thread 7865/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 31 May 2019 08:16:00 +0000 (10:16 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 31 May 2019 08:16:00 +0000 (10:16 +0200)
commit8340b04806191493fb62b8bcd920df5f09f2c726
tree1695bf4a6b7bd9371fafe653d4d51171f71b093d
parent8bf9b427448cae08ac2f2da1c0d1dfcc83b1b006
auth: Initialize cURL before starting any thread

If `curl_global_init()` was not called prior to any call to
`curl_easy_init()`, it will be automatically called.
The documentation states that:

> This may be lethal in multi-threaded cases, since
> curl_global_init is not thread-safe, and it may result in
> resource problems because there is no corresponding cleanup.
pdns/minicurl.cc
pdns/minicurl.hh
pdns/receiver.cc