From: Fabian Keil Date: Wed, 12 Nov 2014 12:00:41 +0000 (+0000) Subject: Make sure csp flags have unique values X-Git-Tag: v_3_0_22~15 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=33004b4590f8df4977986c6fce48e455cf7b3650 Make sure csp flags have unique values Previously CSP_FLAG_CRUNCHED and CSP_FLAG_CLIENT_CONNECTION_HEADER_SET shared the same bit which obviously wasn't intentional. The only negative effect was that Privoxy potentially reused less connections than it could have, which explains why the problem hasn't been noticed for seven years and was only found by manual code inspection. --- diff --git a/project.h b/project.h index 2b0c6069..3f9b5f18 100644 --- a/project.h +++ b/project.h @@ -1,7 +1,7 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED /** Version string. */ -#define PROJECT_H_VERSION "$Id: project.h,v 1.206 2014/06/02 06:22:21 fabiankeil Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.207 2014/07/25 11:55:11 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -726,11 +726,6 @@ struct reusable_connection */ #define CSP_FLAG_TOGGLED_ON 0x20U -/** - * Flag for csp->flags: Set if we answered the request ourselve. - */ -#define CSP_FLAG_CRUNCHED 0x40U - /** * Flag for csp->flags: Set if an acceptable Connection header * has already been set by the client. @@ -853,6 +848,12 @@ struct reusable_connection */ #define CSP_FLAG_UNSUPPORTED_CLIENT_EXPECTATION 0x02000000U +/** + * Flag for csp->flags: Set if we answered the request ourselve. + */ +#define CSP_FLAG_CRUNCHED 0x04000000U + + /* * Flags for use in return codes of child processes */