]> granicus.if.org Git - curl/commitdiff
altsvc: fix removal of expired cache entry
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Aug 2019 08:17:10 +0000 (10:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Aug 2019 12:18:46 +0000 (14:18 +0200)
Closes #4192

lib/altsvc.c

index 0e947199937084b7f53636c71e20b79d3a5216d9..cdf97d680abfa00311df226f11db17a7c44e9288 100644 (file)
@@ -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;
     }