projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
717d36d
)
Only call time() in server_set_cookie() if the time is actually needed
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 11 Nov 2012 12:37:42 +0000
(12:37 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 11 Nov 2012 12:37:42 +0000
(12:37 +0000)
parsers.c
patch
|
blob
|
history
diff --git
a/parsers.c
b/parsers.c
index
710ccce
..
9f58a9d
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-1,4
+1,4
@@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.26
0 2012/10/29 12:04:42
fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.26
1 2012/11/09 10:46:06
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@
-3833,8
+3833,6
@@
static jb_err server_set_cookie(struct client_state *csp, char **header)
time_t now;
time_t cookie_time;
time_t now;
time_t cookie_time;
- time(&now);
-
if ((csp->action->flags & ACTION_CRUNCH_INCOMING_COOKIES) != 0)
{
log_error(LOG_LEVEL_HEADER, "Crunching incoming cookie: %s", *header);
if ((csp->action->flags & ACTION_CRUNCH_INCOMING_COOKIES) != 0)
{
log_error(LOG_LEVEL_HEADER, "Crunching incoming cookie: %s", *header);
@@
-3857,6
+3855,8
@@
static jb_err server_set_cookie(struct client_state *csp, char **header)
cur_tag++;
}
cur_tag++;
}
+ time(&now);
+
/* Loop through each tag in the cookie */
while (*cur_tag)
{
/* Loop through each tag in the cookie */
while (*cur_tag)
{