Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2013 10:20:50 GMT
From:      Alexey Markov <redrat@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/179483: news/leafnode: Coredump of fetchnews because of bug in the code
Message-ID:  <201306111020.r5BAKoFE064004@oldred.freebsd.org>
Resent-Message-ID: <201306111030.r5BAU0uF084424@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179483
>Category:       ports
>Synopsis:       news/leafnode: Coredump of fetchnews because of bug in the code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 11 10:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Markov
>Release:        8.3-RELEASE-p7
>Organization:
JSC Complitex
>Environment:
FreeBSD host.redrat.ru 8.3-RELEASE-p7 FreeBSD 8.3-RELEASE-p7 #0: Thu Apr  4 14:1
5:05 MSK 2013 redrat@host.redrat.ru:/arc/obj/arc/src/sys/HOST amd64
>Description:
There is unrecognized format option 'h' in the nntputil.c:449 which leads to crash of fetchnews on the attempt to log successful connection.
>How-To-Repeat:
Build port and run fetchnews -vvv
>Fix:
Apply attached file.

Patch attached with submission follows:

--- nntputil.c.orig	2013-06-10 22:16:31.000000000 +0400
+++ nntputil.c	2013-06-11 14:09:51.000000000 +0400
@@ -446,7 +446,7 @@
 
 	    reply = nntpreply(upstream);
 	    if (reply == 200 || reply == 201) {
-		ln_log(LNLOG_SINFO, LNLOG_CSERVER, "%s: connected to %s:%hd, reply: %d",
+		ln_log(LNLOG_SINFO, LNLOG_CSERVER, "%s: connected to %s:%d, reply: %d",
 			upstream->name, buf, ntohs(sp->s_port), reply);
 		line = lastreply();
 		if (line == NULL) {


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306111020.r5BAKoFE064004>