🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Jeff Garzik Sat, 17 May 1997 00:00
INN: trouble with ctlinnd begin?
#17836
Author: Jeff Garzik
Date: Sat, 17 May 1997 00:00
12 lines
884 bytes
The man page for ctlinnd indicates that a begin command on an existing
channel feed causes an implicit 'drop' command to be sent first. 
However, when I use the command, it drops not only the feed, but crashes
the entire server.

I'm running INN-1.5.1 patched, but this behavior is reproducible on the
stock INN-1.5.1.  Has anyone seen this or have a patch for it?

	Jeff

Re: INN: trouble with ctlinnd begin?
#18014
Author: Andrew A. Vasilyev
Date: Tue, 27 May 1997 00:00
45 lines
1846 bytes
Jeff Garzik <jeff.garzik@spinne.com> wrote:
JG> The man page for ctlinnd indicates that a begin command on an existing
JG> channel feed causes an implicit 'drop' command to be sent first. 
JG> However, when I use the command, it drops not only the feed, but crashes
JG> the entire server.

  Try this patch (it is very simple, but your line numbers could
  vary, so double check the result):

*** inn-1.5.1/innd/art.c	Sun Apr 20 21:25:13 1997
--- inn/innd/art.c	Wed May 14 18:49:44 1997
***************
*** 1643,1653 ****
  	    if (funnel->FNLwantsnames) {
  		bp = &funnel->FNLnames;
  		p = &bp->Data[bp->Used];
  		if (bp->Used) {
  		    *p++ = ' ';
  		    bp->Used++;
  		}
! 		bp->Used += strlen(strcpy(p, sp->Name));
  	    }
  	}
  }
--- 1673,1687 ----
  	    if (funnel->FNLwantsnames) {
  		bp = &funnel->FNLnames;
  		p = &bp->Data[bp->Used];
+ /* XXX */       if(!p) {
+ 		    syslog(L_ERROR, "%s ARTpropagate(%s) - no data buffer", LogName, funnel->Name ? funnel->Name : "UNKNOWN");
+ 		    continue;
+ 		}
  		if (bp->Used) {
  		    *p++ = ' ';
  		    bp->Used++;
  		}
! 		bp->Used += strlen(strcpy(p, sp->Name ? sp->Name : "?")); /* XXX dumped core when funnel process died --Andy */
  	    }
  	}
  }
_______
	ANDY

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads