Varnishlog.c

Anders Berg andersb at vgnett.no
Fri Jul 28 15:28:24 CEST 2006


> "Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
>> Anders Berg <andersb at vgnett.no> writes:
>> > Line 132 sould be:
>> > if (h_opt && p[1] == 4 && !memcmp(p + 4, "HEAD", 4)
>> > I guess, rather than:
>> > if (h_opt && p[1] == 4 && !memcmp(p + 4, "HEAD", 3)
>> No, it is correct.  the "p[1] == 4" checks that the argument is
>> 4 bytes long and the memcpy checks that it has the right contents.
>
> Yes, the 3 should be a 4 since "HEAD" has four letters.

Thats what I also "figured" out.

Anders Berg

> DES
> --
> Dag-Erling Smørgrav
> Senior Software Developer
> Linpro AS - www.linpro.no
> _______________________________________________
> varnish-dev mailing list
> varnish-dev at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-dev
>
>




More information about the varnish-dev mailing list