From ef15bfe6620d0c1d0830f4d8310c545f383a54b9 Mon Sep 17 00:00:00 2001 From: oes Date: Sun, 3 Mar 2002 14:51:11 +0000 Subject: [PATCH 1/1] Fixed CLF logging: Added ocmd member for client's request to struct http_request --- project.h | 7 ++++++- urlmatch.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/project.h b/project.h index b2ffc00c..795015b1 100644 --- a/project.h +++ b/project.h @@ -1,6 +1,6 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED -#define PROJECT_H_VERSION "$Id: project.h,v 1.46 2002/01/17 21:06:09 jongfoster Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.47 2002/02/20 23:15:13 jongfoster Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -36,6 +36,10 @@ * * Revisions : * $Log: project.h,v $ + * Revision 1.47 2002/02/20 23:15:13 jongfoster + * Parsing functions now handle out-of-memory gracefully by returning + * an error code. + * * Revision 1.46 2002/01/17 21:06:09 jongfoster * Now #defining the URLs of the config interface * @@ -498,6 +502,7 @@ struct map struct http_request { char *cmd; /* Whole command line: method, URL, Version */ + char *ocmd; /* Backup of original cmd for CLF logging */ char *gpc; /* HTTP method: GET, POST, .. */ char *url; /* The URL */ char *ver; /* Protocol version */ diff --git a/urlmatch.c b/urlmatch.c index bfb180c2..0cbfcc3a 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1,4 +1,4 @@ -const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.1 2002/01/17 20:53:46 jongfoster Exp $"; +const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.2 2002/01/21 00:14:09 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $ @@ -33,6 +33,10 @@ const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.1 2002/01/17 20:53:46 jongfoste * * Revisions : * $Log: urlmatch.c,v $ + * Revision 1.2 2002/01/21 00:14:09 jongfoster + * Correcting comment style + * Fixing an uninitialized memory bug in create_url_spec() + * * Revision 1.1 2002/01/17 20:53:46 jongfoster * Moving all our URL and URL pattern parsing code to the same file - it * was scattered around in filters.c, loaders.c and parsers.c. @@ -109,6 +113,7 @@ void free_http_request(struct http_request *http) assert(http); freez(http->cmd); + freez(http->ocmd); freez(http->gpc); freez(http->host); freez(http->url); -- 2.39.2