changeset 1127:65c7e33e4466

allow year 1970 in cookies
author corvid <corvid@lavabit.com>
date Sun, 24 May 2009 21:52:59 +0000
parents 958903cf2733
children fbe2ce98a4b8
files dpi/cookies.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/cookies.c	Sun May 24 20:48:50 2009 +0200
+++ b/dpi/cookies.c	Sun May 24 21:52:59 2009 +0000
@@ -539,7 +539,7 @@
    }
 
    /* Error checks  --this may be overkill */
-   if (!(day > 0 && day < 32 && month > 0 && month < 13 && year > 1970 &&
+   if (!(day > 0 && day < 32 && month > 0 && month < 13 && year >= 1970 &&
          hour >= 0 && hour < 24 && minutes >= 0 && minutes < 60 &&
          seconds >= 0 && seconds < 60)) {
       MSG("%s%s\n", E_msg, expires);