projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
877775c
)
Fixed CLF logging: Added ocmd member for client's request to struct http_request
author
oes
<oes@users.sourceforge.net>
Sun, 3 Mar 2002 14:51:11 +0000
(14:51 +0000)
committer
oes
<oes@users.sourceforge.net>
Sun, 3 Mar 2002 14:51:11 +0000
(14:51 +0000)
project.h
patch
|
blob
|
history
urlmatch.c
patch
|
blob
|
history
diff --git
a/project.h
b/project.h
index
b2ffc00
..
795015b
100644
(file)
--- a/
project.h
+++ b/
project.h
@@
-1,6
+1,6
@@
#ifndef PROJECT_H_INCLUDED
#define PROJECT_H_INCLUDED
#ifndef PROJECT_H_INCLUDED
#define PROJECT_H_INCLUDED
-#define PROJECT_H_VERSION "$Id: project.h,v 1.4
6 2002/01/17 21:06:09
jongfoster Exp $"
+#define PROJECT_H_VERSION "$Id: project.h,v 1.4
7 2002/02/20 23:15:13
jongfoster Exp $"
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/project.h,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/project.h,v $
@@
-36,6
+36,10
@@
*
* Revisions :
* $Log: project.h,v $
*
* 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
*
* 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 */
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 */
char *gpc; /* HTTP method: GET, POST, .. */
char *url; /* The URL */
char *ver; /* Protocol version */
diff --git
a/urlmatch.c
b/urlmatch.c
index
bfb180c
..
0cbfcc3
100644
(file)
--- 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 $
/*********************************************************************
*
* 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 $
*
* 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.
* 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);
assert(http);
freez(http->cmd);
+ freez(http->ocmd);
freez(http->gpc);
freez(http->host);
freez(http->url);
freez(http->gpc);
freez(http->host);
freez(http->url);