From ac79da36ceabd35970b6a8ce92b794be37cf1427 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 7 Feb 2007 16:52:11 +0000 Subject: [PATCH] Fix log messages regarding the cookie time format (cookie and request URL were mixed up). --- parsers.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/parsers.c b/parsers.c index f84cf890..317eee43 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.87 2007/01/31 16:21:38 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.88 2007/02/07 11:27:12 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -45,6 +45,14 @@ const char parsers_rcs[] = "$Id: parsers.c,v 1.87 2007/01/31 16:21:38 fabiankeil * * Revisions : * $Log: parsers.c,v $ + * Revision 1.88 2007/02/07 11:27:12 fabiankeil + * - Let decompress_iob() + * - not corrupt the content if decompression fails + * early. (the first byte(s) were lost). + * - use pointer arithmetics with defined outcome for + * a change. + * - Use a different kludge to remember a failed decompression. + * * Revision 1.87 2007/01/31 16:21:38 fabiankeil * Search for Max-Forwards headers case-insensitive, * don't generate the "501 unsupported" message for invalid @@ -3416,20 +3424,20 @@ jb_err server_set_cookie(struct client_state *csp, char **header) { log_error(LOG_LEVEL_HEADER, "cookie \'%s\' send by %s appears to be using time format 1.", - csp->http->url, *header); + *header, csp->http->url); } else if (NULL != (match = strptime(cur_tag, "expires=%A, %e-%b-%Y %H:%M:%S ", &tm_cookie))) { log_error(LOG_LEVEL_HEADER, "cookie \'%s\' send by %s appears to be using time format 2.", - csp->http->url, *header); + *header, csp->http->url); } else if (NULL != (match = strptime(cur_tag, "expires=%a, %e-%b-%Y %H:%M:%S ", &tm_cookie))) { log_error(LOG_LEVEL_HEADER, "cookie \'%s\' send by %s appears to be using time format 3.", - csp->http->url, *header); + *header, csp->http->url); } /* Did any of them match? */ -- 2.39.2