]> git.ipfire.org Git - thirdparty/curl.git/commit
cfilter: unlink and discard
authorStefan Eissing <stefan@eissing.org>
Thu, 18 Sep 2025 09:10:45 +0000 (11:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 18 Sep 2025 10:20:26 +0000 (12:20 +0200)
commit0f0821133095cf8b6efdfd98c71a09fccb34ac78
tree00d9556db6bff6eadf1d05f53ba167abaadd4f35
parentca034e839c92570b6cece09b63624af41f39e77b
cfilter: unlink and discard

Rewrite the code that removes a filter from the connection and discards
it. Always look at the connection, otherwise it will not work of the
filter is at the top of the chain.

Change QUIC filter setup code to always tear down the chain in
construction when an error occured.

HTTP proxy, do not remove the h1/h2 sub filter on close. Leave it to be
discarded with the connection. Avoids keeping an additional pointer that
might become dangling.

Triggered by a reported on a code bug in discard method.

Reported-by: Joshua Rogers
Closes #18596
lib/cfilters.c
lib/cfilters.h
lib/http_proxy.c
lib/vquic/curl_ngtcp2.c
lib/vquic/curl_osslq.c
lib/vquic/curl_quiche.c
lib/vtls/vtls.c