summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-05 10:17:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-05 10:17:10 +0200
commitcafc82d5374b0af2e1a298df885d6e5f7aa2fa78 (patch)
tree42cc84b59d341048d1445669e171e808dc0be9b5
parent2f4e14e404cf71ea4a6efbc5c4fa5bed6e3e4686 (diff)
downloadcurl-bagder/altsvc-expire-lookup.tar.gz
altsvc: fix removal of expired cache entrybagder/altsvc-expire-lookup
-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;
}