From e1b727ca312e14555c99321ec7e48536e461c93a Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 20 Sep 2006 15:50:31 +0000
Subject: [PATCH] =?utf8?q?Doubled=20size=20of=20HOSTENT=5FBUFFER=5FSIZE=20?=
 =?utf8?q?to=20mask=20problems=20with=20gethostbyname=5Fr=20and=20some=20/?=
 =?utf8?q?etc/hosts=20configurations.=20Only=20a=20workaround=20until=20we?=
 =?utf8?q?=20get=20the=20real=20fix=20ready.=20Thanks=20F=E9lix=20Rauch=20?=
 =?utf8?q?for=20reporting.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Increased value of MAX_TRUSTED_REFERRERS from 64 to 512.
---
 project.h | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/project.h b/project.h
index d7f888cb..4bf92a17 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.80 2006/09/06 10:43:32 fabiankeil Exp $"
+#define PROJECT_H_VERSION "$Id: project.h,v 1.81 2006/09/06 13:03:04 fabiankeil Exp $"
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/project.h,v $
@@ -37,6 +37,10 @@
  *
  * Revisions   :
  *    $Log: project.h,v $
+ *    Revision 1.81  2006/09/06 13:03:04  fabiankeil
+ *    Respond with 400 and a short text message
+ *    if the client tries to use Privoxy as FTP proxy.
+ *
  *    Revision 1.80  2006/09/06 10:43:32  fabiankeil
  *    Added config option enable-remote-http-toggle
  *    to specify if Privoxy should recognize special
@@ -653,7 +657,12 @@ typedef int jb_err;
  * load balancing. W3C's wwwlib uses 1K, so that should be
  * good enough for us, too.
  */
-#define HOSTENT_BUFFER_SIZE 1024
+/**
+ * XXX: Temporary doubled, for some configurations
+ * 1K is still too small and we didn't get the
+ * real fix ready for inclusion.
+ */
+#define HOSTENT_BUFFER_SIZE 2048
 
 /**
  * Do not use.  Originally this was so that you can
@@ -1300,7 +1309,7 @@ struct block_spec
  * Arbitrary limit for the number of trusted referrers
  * Privoxy can print in its blocking message.
  */
-#define MAX_TRUSTED_REFERRERS 64
+#define MAX_TRUSTED_REFERRERS 512
 
 #endif /* def FEATURE_TRUST */
 
-- 
2.49.0