htdig bug report

Walter Hafner (
Wed, 14 Jan 1998 14:44:55 -0100 (CET)


A quick bug report for htdig-3.0.8b2 :

If a HTTP demon doesn't send valid date/time information, the function
"mystrptime" returns without initializing the structure "tm" correctly
and "mytimegm" segfaults.

I don't know whether this problem is common but here at the TU Muenchen
I encounter it regulary. I use htdig to index all the servers of the TU
Muenchen and this is a VERY heterogenous environment ...

Quick and dirty fix:

In, initialize "tm" manually before calling "mystrptime":
    tm.tm_min = 0;
    tm.tm_hour = 0;
    tm.tm_mday = 0;



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:25:32 PST