]> git.ipfire.org Git - thirdparty/curl.git/commit
easy: during upkeep, attach Curl_easy to connections in the cache
authorJosie Huddleston <Josie.Huddleston@metaswitch.com>
Tue, 13 Jul 2021 12:23:26 +0000 (13:23 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 17 Jul 2021 21:43:55 +0000 (23:43 +0200)
commitc12ad2d4e8e8d1371eff72e5a6b25357c2ea2fdb
tree52ed1cc44214a3587c743579fe92d50a63539e20
parentde1004eb0f917b265f187c14d9abaaf7f13f8422
easy: during upkeep, attach Curl_easy to connections in the cache

During the protocol-specific parts of connection upkeep, some code
assumes that the data->conn pointer already is set correctly.  However,
there's currently no guarantee of that in the code.

This fix temporarily attaches each connection to the Curl_easy object
before performing the protocol-specific connection check on it, in a
similar manner to the connection checking in extract_if_dead().

Fixes #7386
Closes #7387
Reported-by: Josie Huddleston
lib/easy.c