aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-16 08:37:29 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-16 09:02:24 +0100
commit7b774482e73ec3cb0a9ab57b967773639e45f0be (patch)
tree5f19b949dad0b0e43064da45a35847aaaf709b67
parent27ecc22649df12410d813b1d9d4a223e08276bfa (diff)
Curl_cookie_add: remove 'now' from curl_getdate() call
The now argument is unused by curl_getdate()
-rw-r--r--lib/cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index c59732672..9961c67b8 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -501,7 +501,7 @@ Curl_cookie_add(struct SessionHandle *data,
}
/* Note that if the date couldn't get parsed for whatever reason,
the cookie will be treated as a session cookie */
- co->expires = curl_getdate(what, &now);
+ co->expires = curl_getdate(what, NULL);
/* Session cookies have expires set to 0 so if we get that back
from the date parser let's add a second to make it a