]> git.ipfire.org Git - thirdparty/curl.git/commit
cf-h2-prox: fix peer leak
authorStefan Eissing <stefan@eissing.org>
Fri, 15 May 2026 11:37:36 +0000 (13:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 16 May 2026 22:14:36 +0000 (00:14 +0200)
commita0f08d6975d00c3ea04e1bd2fcf60dad446266ec
treeaa7843632c62ff73c64fbc3d4a74c1c81fca087b
parent061136f24b5271a8360b9c128d5a2329a253ebde
cf-h2-prox: fix peer leak

The unlinking of the new Curl_peer was happening too later after
the struct had been set to zero. Move the unlink to happen before
that.

Fixes #21602
Reported-by: Joshua Rogers
Closes #21627
lib/cf-h2-proxy.c