[zorp-hu] valtozas 7.13 rol 7.14 re

Balazs Scheidler bazsi@balabit.hu
Wed, 31 Jan 2001 14:23:49 +0100


On Wed, Jan 31, 2001 at 02:05:00PM +0100, Szûcs Tibor wrote:
> Udv
> 
> A http proxy ban tortent valami valtozas
> amitol a kovetkezo tortenik
> ha bongeszovel toltok le egy filet akkor szepen lejon
> ha a file letolteset a getright vegezne akkor  nem tolti le

Ezt a patchet kene kiprobalni (a modules/zorp-module-http-*/http.c re kell
applyolni):

Index: http.c
===================================================================
RCS file: /var/cvs/zorp-module-http/http.c,v
retrieving revision 1.39
diff -u -r1.39 http.c
--- http.c	2001/01/30 14:18:37	1.39
+++ http.c	2001/01/31 13:22:59
@@ -1065,8 +1065,8 @@
     {
       self->request_type = HTTP_REQTYPE_SERVER;
     }
-  else if (strcasecmp(self->request_url->str, "http://") ||
-           strcasecmp(self->request_url->str, "ftp://"))
+  else if (strncasecmp(self->request_url->str, "http://", 7) ||
+           strncasecmp(self->request_url->str, "ftp://", 6))
     {
       /* neither Connection nor Proxy-Connection header exists  */
       self->request_type = HTTP_REQTYPE_PROXY;


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1