🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #692

Warning: BUG IN PATCH #7 (+work around)

#692
From: Kim F. Storm
Date: Tue, 10 Jul 1990 09:37
40 lines
1954 bytes
Sorry, but I goofed it!

There is a bug in patch #7 just released which may cause the 'P' command
to crash nn on some systems due to deferencing a NULL pointer.

The work-around is not to use print-header-type 1 (and thus the new
print-header-lines feature).  I suggest you include this line in the
global init file:

	set print-header-type 2

The problem is easy to fix, so if you want, you can apply the following
patch to fix it until the next official patch is released:

++Kim


*** LAST/save.c	Mon Jul  9 18:00:05 1990
--- save.c	Tue Jul 10 10:32:30 1990
***************
*** 508,514 ****
      } else
      if (mode == SHORT_HEADER || mode == SHORT_HEADER_DG) {
  	char *name, *val;
! 	scan_header_fields(short_header_lines, ah->flag & A_DIGEST);
  	while (next_header_field(&name, &val, (fct_type *)NULL)) {
  	    if (name == NULL) continue;
  	    fprintf(save_file, "%s: %s\n", name, val);
--- 508,514 ----
      } else
      if (mode == SHORT_HEADER || mode == SHORT_HEADER_DG) {
  	char *name, *val;
! 	scan_header_fields(short_header_lines, ah);
  	while (next_header_field(&name, &val, (fct_type *)NULL)) {
  	    if (name == NULL) continue;
  	    fprintf(save_file, "%s: %s\n", name, val);

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Technical Details
Message-ID: <618@texas.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm

Show Full Headers
Complete Article Headers
Message-ID: <618@texas.dk>
Subject: Warning: BUG IN PATCH #7 (+work around)
Date: Tue, 10 Jul 1990 09:37:14 +0000
From: storm@texas.dk (Kim F. Storm)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
Newsgroups: news.software.nn
Summary: Problem with print-header-type 1
Distribution: news
Organization: Texas Instruments, Denmark
Lines: 40
Posted: Tue Jul 10 10:37:14 1990