altsvc: fix removal of expired cache entry

Closes #4192
This commit is contained in:
Daniel Stenberg 2019-08-05 10:17:10 +02:00
parent 2f4e14e404
commit 182c272133
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 0 deletions

View 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;
}