🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Jeremy Johnson Thu, 24 Apr 1997 00:00
NNRP 1.5.1 newnews.c NULL pointer?
#17300
Author: 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

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