aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-03-05 13:35:17 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-03-05 13:35:17 -0500
commit20de9b4f090e9000f90362ec6fdede7d1153a643 (patch)
tree8311383513998f9a7f98aa095c3950eae4a9997d /lib
parent33a0a926c59cd848f20764ecf0144f69df576c68 (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 1fd97c013..558b6a7f2 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -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;
}