From: Stefan Eissing Date: Fri, 30 Aug 2024 09:54:14 +0000 (+0200) Subject: llist: clear the list pointer when a node is removed X-Git-Tag: curl-8_10_0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc81292ea62cb7141e03d266ef8a50ba66d896bf;p=thirdparty%2Fcurl.git llist: clear the list pointer when a node is removed Closes #14738 --- 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;