From: Daniel Stenberg Date: Mon, 5 Aug 2019 08:17:10 +0000 (+0200) Subject: altsvc: fix removal of expired cache entry X-Git-Tag: curl-7_66_0~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=182c272133c803428af64b4cde3ad6dcc041f4b8;p=curl altsvc: fix removal of expired cache entry Closes #4192 --- diff --git a/lib/altsvc.c b/lib/altsvc.c index 0e9471999..cdf97d680 100644 --- a/lib/altsvc.c +++ b/lib/altsvc.c @@ -559,6 +559,7 @@ bool Curl_altsvc_lookup(struct altsvcinfo *asi, n = e->next; if(as->expires < now) { /* an expired entry, remove */ + Curl_llist_remove(&asi->list, e, NULL); altsvc_free(as); continue; }