[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] texpire in 2.0b8_ma7.5pre with miscutil.c patch



Michael Mauch schrieb am Sonntag, den 14. Oktober 2001:

> Program received signal SIGSEGV, Segmentation fault.
> lookup_expire (group=0x8067c90 "24hoursupport.helpdesk") at texpire.c:579
> 
> The relevant function:
> 
> static time_t lookup_expire(char *group)
> {
>     struct expire_entry *a;
>     
>     for (a = expire_base ; a ; a = a->next) {
>     	if (ngmatch(a->group, group) == 0)
>     	    return a->xtime;
>     	a = a->next;
>     }
>     return default_expire;
> }
> 
> Isn't this one "a = a->next" too much?

It is, Raymond Scholz already sent me a patch. Just drop that
"a = a->next;" line after the "return a->xtime;".

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list