current jcc.c,1.445,1.446

Fabian Keil <[email protected]> Wed, 25 May 2016 10:54:03 +0000
Newsgroups gmane.comp.web.privoxy.cvs
Message-ID <[email protected]>
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4966

Modified Files:
	jcc.c 
Log Message:
prepare_csp_for_next_request(): Use the global toggle state for new requests

Previously new requests inherited the toggle state
from the previous request even though the toggle state
could have changed.

Reported by Robert Klemme.


Index: jcc.c
===================================================================
RCS file: /cvsroot/ijbswa/current/jcc.c,v
retrieving revision 1.445
retrieving revision 1.446
diff -C2 -d -r1.445 -r1.446
*** jcc.c	25 May 2016 10:51:10 -0000	1.445
--- jcc.c	25 May 2016 10:54:01 -0000	1.446
***************
*** 2814,2819 ****
  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;
--- 2814,2817 ----
***************
*** 2838,2842 ****
     /* XXX: Store per-connection flags someplace else. */
     csp->flags = (CSP_FLAG_ACTIVE | CSP_FLAG_REUSED_CLIENT_CONNECTION);
!    if (toggled_on_flag_set)
     {
        csp->flags |= CSP_FLAG_TOGGLED_ON;
--- 2836,2842 ----
     /* XXX: Store per-connection flags someplace else. */
     csp->flags = (CSP_FLAG_ACTIVE | CSP_FLAG_REUSED_CLIENT_CONNECTION);
! #ifdef FEATURE_TOGGLE
!    if (global_toggle_state)
! #endif /* def FEATURE_TOGGLE */
     {
        csp->flags |= CSP_FLAG_TOGGLED_ON;


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j