changeset 1483:d6776d51675d

handle max-age + expires error case
author corvid <corvid@lavabit.com>
date Wed, 30 Dec 2009 05:54:44 +0000
parents a749c1b10fbe
children 29d892265da0
files dpi/cookies.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/cookies.c	Mon Dec 28 00:27:21 2009 +0000
+++ b/dpi/cookies.c	Wed Dec 30 05:54:44 2009 +0000
@@ -907,6 +907,11 @@
                error = TRUE;
                continue;
             }
+         } else {
+            MSG("Cookie cannot contain Max-Age and Expires.\n");
+            dFree(attr);
+            error = TRUE;
+            continue;
          }
       } else if (dStrcasecmp(attr, "Port") == 0) {
          value = Cookies_parse_value(&str, FALSE, TRUE);