projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create-package-feed.pl: Get input directory and output file from the command line
[privoxy.git]
/
jcc.c
diff --git
a/jcc.c
b/jcc.c
index
082bb02
..
b199c47
100644
(file)
--- a/
jcc.c
+++ b/
jcc.c
@@
-1,4
+1,4
@@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.44
3 2016/05/22 12:43:07
fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.44
5 2016/05/25 10:51:10
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@
-2813,8
+2813,6
@@
static void chat(struct client_state *csp)
*********************************************************************/
static void prepare_csp_for_next_request(struct client_state *csp)
{
*********************************************************************/
static void prepare_csp_for_next_request(struct client_state *csp)
{
- unsigned int toggled_on_flag_set = (0 != (csp->flags & CSP_FLAG_TOGGLED_ON));
-
csp->content_type = 0;
csp->content_length = 0;
csp->expected_content_length = 0;
csp->content_type = 0;
csp->content_length = 0;
csp->expected_content_length = 0;
@@
-2837,7
+2835,9
@@
static void prepare_csp_for_next_request(struct client_state *csp)
}
/* XXX: Store per-connection flags someplace else. */
csp->flags = (CSP_FLAG_ACTIVE | CSP_FLAG_REUSED_CLIENT_CONNECTION);
}
/* XXX: Store per-connection flags someplace else. */
csp->flags = (CSP_FLAG_ACTIVE | CSP_FLAG_REUSED_CLIENT_CONNECTION);
- if (toggled_on_flag_set)
+#ifdef FEATURE_TOGGLE
+ if (global_toggle_state)
+#endif /* def FEATURE_TOGGLE */
{
csp->flags |= CSP_FLAG_TOGGLED_ON;
}
{
csp->flags |= CSP_FLAG_TOGGLED_ON;
}
@@
-4054,7
+4054,8
@@
static void listen_loop(void)
if (block_acl(NULL,csp))
{
log_error(LOG_LEVEL_CONNECT,
if (block_acl(NULL,csp))
{
log_error(LOG_LEVEL_CONNECT,
- "Connection from %s on socket %d dropped due to ACL", csp->ip_addr_str, csp->cfd);
+ "Connection from %s on %s (socket %d) dropped due to ACL",
+ csp->ip_addr_str, csp->listen_addr_str, csp->cfd);
close_socket(csp->cfd);
freez(csp->ip_addr_str);
freez(csp->listen_addr_str);
close_socket(csp->cfd);
freez(csp->ip_addr_str);
freez(csp->listen_addr_str);