inn-CURRENT: Bug in lib/date.c

Russ Allbery rra at stanford.edu
Sun Dec 28 00:21:41 UTC 2003


Jochen Erwied <jochen at erwied.de> writes:

> Off-by-one error in parsedate_rfc2822()
> Patch appended.

> --- lib/date.c.orig	2003-12-28 00:22:05.000000000 +0100
> +++ lib/date.c	2003-12-28 00:22:13.000000000 +0100
> @@ -593,5 +593,5 @@
>      tm.tm_year = values[4];
>      tm.tm_hour = values[5];
> -    tm.tm_min = values[7];
> +    tm.tm_min = values[6];
 
>      /* Parse seconds if they're present. */

Are you sure this is right?  values[6] should be the colon separating the
numbers.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>


More information about the inn-bugs mailing list