mirror of
https://github.com/curl/curl.git
synced 2026-05-14 20:36:20 +03:00
cookies: expire "Max-Age=0" immediately
Reported-by: Jeroen Ooms Fixes #3351 Closes #3352
This commit is contained in:
parent
d997aa0e96
commit
1e9abfedfa
1 changed files with 4 additions and 1 deletions
|
|
@ -675,7 +675,10 @@ Curl_cookie_add(struct Curl_easy *data,
|
|||
/* overflow, used max value */
|
||||
co->expires = CURL_OFF_T_MAX;
|
||||
else if(!offt) {
|
||||
if(CURL_OFF_T_MAX - now < co->expires)
|
||||
if(!co->expires)
|
||||
/* already expired */
|
||||
co->expires = 1;
|
||||
else if(CURL_OFF_T_MAX - now < co->expires)
|
||||
/* would overflow */
|
||||
co->expires = CURL_OFF_T_MAX;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue