Subject: Re: ctlinnd feedinfo "sitename" causes 1.7.2+insync-d to crash?
From: "Forrest J. Cavalier III" <[email-masked]>
To: Chris van den Berg <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Wed, 11 Mar 1998 13:56:30 -0500

> From:          Chris van den Berg <[email-masked]>
> To:            [email-masked]
> Subject:       ctlinnd feedinfo "sitename" causes 1.7.2+insync-d to crash?

> Dunno if anyone's reported on this before...  Here's a backtrace from a
> core file.  innd crashed with signal 11, seg fault after issuing ctlinnd
> 

Hmmm.  Apparently that defect has been there a while..
...It only gets triggered when a channel is sleeping and
you run ctlinnd feedinfo.....

Thanks for reporting it and providing the backtrace!

Here's the patch.  For 1.5.1 (but anything after that
needs to be fixed also.)

Forrest
--- innd/site.c	Tue Dec 17 05:40:40 1996
+++ innd/site.c	Wed Mar 11 13:55:28 1998
@@ -1217,7 +1217,7 @@
 		ctime(&cp->LastActive) + 4);
 	    p += strlen(p);
 	    if (cp->Waketime > Now.time) {
-		(void)sprintf("\tSleeping until %.12s\n",
+		(void)sprintf(p, "\tSleeping until %.12s\n",
 		    ctime(&cp->Waketime) + 4);
 		p += strlen(p);
 	    }