mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
cookie: Don't expire session cookies in remove_expired
Prior to this change cookies with an expiry date that failed parsing and were converted to session cookies could be purged in remove_expired. Bug: https://github.com/curl/curl/issues/697 Reported-by: Seth Mos
This commit is contained in:
parent
33a0a926c5
commit
20de9b4f09
@ -309,7 +309,7 @@ static void remove_expired(struct CookieInfo *cookies)
|
||||
pv = NULL;
|
||||
while(co) {
|
||||
nx = co->next;
|
||||
if((co->expirestr || co->maxage) && co->expires < now) {
|
||||
if(co->expires && co->expires < now) {
|
||||
if(co == cookies->cookies) {
|
||||
cookies->cookies = co->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user