]> git.ipfire.org Git - thirdparty/curl.git/commit
cf-socket: keep sockaddr local in the socket filters
authorStefan Eissing <stefan@eissing.org>
Tue, 3 Jan 2023 12:13:37 +0000 (13:13 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Jan 2023 16:33:29 +0000 (17:33 +0100)
commit6a8d7ef9818d5f5c9bbd9bcf4ce09feaa04a1556
tree91ef71e554b532ce00c38d27f1c31a9c8333d933
parent436d63fbb18db9c91e816b27a3b9316cd7310471
cf-socket: keep sockaddr local in the socket filters

- copy `struct Curl_addrinfo` on filter setup into context
- remove `struct Curl_addrinfoi *` with `struct Curl_sockaddr_ex *` in
  connectdata that is set and NULLed by the socket filter
- this means we have no reference to the resolver info in connectdata or
  its filters
- trigger the CF_CTRL_CONN_INFO_UPDATE event when the complete filter
  chain reaches connected status
- update easy handle connection information on CF_CTRL_DATA_SETUP event.

Closes #10213
lib/cf-socket.c
lib/cfilters.c
lib/ftp.c
lib/krb5.c
lib/sendf.c
lib/tftp.c
lib/url.c
lib/urldata.h