🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17300

NNRP 1.5.1 newnews.c NULL pointer?

#17300
From: Jeremy Johnson
Date: Thu, 24 Apr 1997 00:00
21 lines
1064 bytes

I found a problem in nnrpd on my server. I traced it back to 
line 246 in newnews.c. I'm running INN 1.5.1 on an DEC Alpha.

turns out that in some situations, the groups variable would
be NULL, so trying to compare against groups[0] would cause a Seg fault.

I worked around it by changing:
    if (!strcmp(groups[0], "!*")) {
to
    if ((groups==NULL) ||(!strcmp(groups[0], "!*"))) {


this may not be the proper fix, but it stopped the seg faults on my
system.

		-jer johnson
		UltraNet development team

Technical Details
Message-ID: <ytg1wg1iet.fsf@ceyx.ultra.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <ytg1wg1iet.fsf@ceyx.ultra.net>
Subject: NNRP 1.5.1 newnews.c NULL pointer?
Date: Thu, 24 Apr 1997 00:00:00 +0000
From: jer@ceyx.ultra.net (Jeremy Johnson)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 237114920
Distribution: inet
Organization: UltraNet Communications, Marlboro MA
Newsgroups: news.software.nntp