]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
llist: clear the list pointer when a node is removed
authorStefan Eissing <stefan@eissing.org>
Fri, 30 Aug 2024 09:54:14 +0000 (11:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Aug 2024 11:17:42 +0000 (13:17 +0200)
Closes #14738

lib/llist.c

index 1a91f02717b076c39d96e4a6a2e4080440044083..f0e5fe08bbd0a7d253db66dd51106befc0e14a45 100644 (file)
@@ -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;