aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/altsvc.c1
1 files changed, 1 insertions, 0 deletions
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;
}