httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <>
Subject Bug in mod_log_referer.c (fwd)
Date Tue, 09 Apr 1996 13:30:19 GMT

will ack

Date: Tue, 09 Apr 1996 11:38:03 +0000 (GMT)
From: "Dr. Nicko van Someren" <>
Subject: Bug in mod_log_referer.c
Message-ID: <>
MIME-Version: 1.0
Content-Transfer-Encoding: QUOTED-PRINTABLE
X-Organisation: Aleph One Ltd. / ANT Ltd.
X-Mailer: ANT RISCOS Marcel [ver 0.99i]

There seems to be a bug in the code that deals with checking against multip=
referer ignore entries.  In the function referer_log_transaction the variab=
char **ptrptr is being incremented by the wrong amount.  The increent given
in the source is the size of each of the elements in the array but adding t=
a pointer in C does so in steps of the size of the item pointed to.  Thus i=
the case of mod_log_referer.c it the variable should be incremented by 1.

Here is the result of 'diff mod_log_referer.c mod_log_referer.c~'

< =09      ptrptr ++ ) 
> =09      ptrptr +=3D cls->referer_ignore_list->elt_size) 

I hope this is of help.


Dr. Nicko van Someren.      Vox:(44)(1223) 567808     Fax:(44)(1223) 567801                

----- End of forwarded message from Dr. Nicko van Someren -----

Rob Hartill (
The Internet Movie Database (IMDb)
           ...more movie info than you can poke a stick at.

View raw message