From: jongfoster <jongfoster@users.sourceforge.net>
Date: Wed, 10 Oct 2001 19:56:46 +0000 (+0000)
Subject: Moving some code that wasn't cookie-related out of an #ifdef
X-Git-Tag: v_2_9_10~139
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/@default-cgi@send-stylesheet?a=commitdiff_plain;h=a484396872e5373c184ef6e4d8cfebd7059a8bab;p=privoxy.git

Moving some code that wasn't cookie-related out of an #ifdef
FEATURE_COOKIE_JAR
---

diff --git a/jcc.c b/jcc.c
index dd89b04d..7c09830b 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.46 2001/10/08 15:17:41 oes Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.47 2001/10/10 16:44:36 oes Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.46 2001/10/08 15:17:41 oes Exp $";
  *
  * Revisions   :
  *    $Log: jcc.c,v $
+ *    Revision 1.47  2001/10/10 16:44:36  oes
+ *    Added CONNECT destination port limitation check
+ *
  *    Revision 1.46  2001/10/08 15:17:41  oes
  *    Re-enabled SSL forwarding
  *
@@ -608,7 +611,6 @@ static void chat(struct client_state *csp)
       url_actions(http, csp);
    }
 
-#ifdef FEATURE_COOKIE_JAR
 
    /*
     * Check if a CONNECT request is allowable:
@@ -669,6 +671,7 @@ static void chat(struct client_state *csp)
    enlist(csp->headers, http->cmd);
 
 
+#ifdef FEATURE_COOKIE_JAR
    /*
     * If we're logging cookies in a cookie jar, and the user has not
     * supplied any wafers, and the user has not told us to suppress the
@@ -682,6 +685,7 @@ static void chat(struct client_state *csp)
    }
 #endif /* def FEATURE_COOKIE_JAR */
 
+
 #ifdef FEATURE_KILL_POPUPS
    block_popups               = ((csp->action->flags & ACTION_NO_POPUPS) != 0);
 #endif /* def FEATURE_KILL_POPUPS */