From bc81292ea62cb7141e03d266ef8a50ba66d896bf Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 30 Aug 2024 11:54:14 +0200 Subject: [PATCH] llist: clear the list pointer when a node is removed Closes #14738 --- lib/llist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/llist.c b/lib/llist.c index 1a91f02717..f0e5fe08bb 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -170,6 +170,7 @@ Curl_node_uremove(struct Curl_llist_node *e, void *user) ptr = e->_ptr; + e->_list = NULL; e->_ptr = NULL; e->_prev = NULL; e->_next = NULL; -- 2.47.3