On Sat, Jun 23, 2007 at 12:27:35PM +0200, Marc Haber wrote: > On Sat, Jun 23, 2007 at 09:06:50AM +0200, Marc Haber wrote: > > inn2 sometimes crashes when cron issues the default "reload > > incoming.conf" command at 03:02 in the night. > > This is a duplicate of #361073, filed by me more than one year ago.
The attached patch from inn-workers possibly fixes the issue. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
--- inn-2.4.3/innd/rc.c.orig 2007-07-20 13:56:51.000000000 +0000 +++ inn-2.4.3/innd/rc.c 2007-07-20 13:58:16.000000000 +0000 @@ -952,6 +952,8 @@ groups = xrealloc(groups, (groupcount + 4) * sizeof(REMOTEHOST)); maxgroup += 5; group_params = groups + groupcount - 1; + } else { + group_params++; } group_params->Label = word; group_params->Skip = groupcount > 1 ? @@ -1241,8 +1243,10 @@ RCadddata(data, &infocount, K_END_GROUP, T_STRING, NULL); group_params->Label = NULL; groupcount--; - if (groupcount == 0) + if (groupcount == 0) { free(groups); + maxgroup = 0; + } else group_params--; }