Varnishlog.c

Dag-Erling Smørgrav des at linpro.no
Fri Jul 28 14:40:43 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.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-dev mailing list