diff options
author | corvid <corvid@lavabit.com> | 2010-03-09 19:44:49 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-03-09 19:44:49 +0000 |
commit | 1899f862c3a110ec5459455043a788435a9fb24c (patch) | |
tree | 976a38e92b5cdbed6df9e9669a79b127ac5e06d5 /test | |
parent | 7fbcd62f15a46d021165bae5c67e440d0f5cd6fb (diff) |
cookies: use difftime() for time_t comparisons
...as Johannes pointed out.
(This patch in itself is not meant to fix the time_t overflow problem.)
Diffstat (limited to 'test')
-rw-r--r-- | test/cookies.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cookies.c b/test/cookies.c index d5062894..0d8d3db1 100644 --- a/test/cookies.c +++ b/test/cookies.c @@ -551,6 +551,8 @@ static void maxage() a_Cookies_set("name=val; max-age=-100", "maxage-100.com", "/", NULL); expect(__LINE__, "", "http", "maxage-100.com", "/"); + a_Cookies_set("name=val; max-age=2000000000", "maxage-huge.com", "/", NULL); + expect(__LINE__, "Cookie: name=val\r\n", "http", "maxage-huge.com", "/"); /* just having a server date shouldn't matter */ a_Cookies_set("name=val; max-age=0", "maxage0s.com", "/", server_date); |