NetBSD Problem Report #44996

From www@NetBSD.org  Thu May 26 11:30:13 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 2478563C08F
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 26 May 2011 11:30:13 +0000 (UTC)
Message-Id: <20110526113012.1E0D863BA4F@www.NetBSD.org>
Date: Thu, 26 May 2011 11:30:12 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: two enhancements for net/nmap
X-Send-Pr-Version: www-1.0

>Number:         44996
>Category:       pkg
>Synopsis:       two enhancements for net/nmap
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pettai
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 26 11:35:00 +0000 2011
>Closed-Date:    Sun Jun 05 23:25:01 +0000 2011
>Last-Modified:  Sun Jun 05 23:25:01 +0000 2011
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
1) net/nmap depends on OpenSSL 0.9.8, older versions don't contain EVP_sha256:

http://seclists.org/nmap-dev/2011/q1/45

2) nmap segfaults when given wrong host specifications, e.g. a non-resolvable hostname. A patch has been posted to the nmap developers list:

http://seclists.org/nmap-dev/2011/q2/221

It will be included in the next release, but for the time being a local fix is necessary.
>How-To-Repeat:

>Fix:
1)

--- Makefile    2011/05/26 11:24:01     1.1
+++ Makefile    2011/05/26 11:24:26
@@ -17,6 +17,7 @@

 BUILDLINK_API_DEPENDS.libpcap= libpcap>=1.0.0
 BUILDLINK_API_DEPENDS.libpcre= libpcre>=7.6
+BUILDLINK_API_DEPENDS.openssl=  openssl>=0.9.8

 GNU_CONFIGURE=         yes


2)

--- TargetGroup.cc.orig 2011-01-21 00:04:16.000000000 +0000
+++ TargetGroup.cc
@@ -220,7 +220,8 @@ int TargetGroup::parse_expr(const char *
           resolvedaddrs.push_back(ss);
         }
       }
-      freeaddrinfo(addrs);
+      if (addrs)
+        freeaddrinfo(addrs);

       if (resolvedaddrs.empty()) {
         error("Failed to resolve given hostname/IP: %s.  Note that you can't use '/mask' AND '1-4,7,100-' style IP ranges", target_net);

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->pettai
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Thu, 26 May 2011 14:39:03 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "Fredrik Pettai" <pettai@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44996 CVS commit: pkgsrc/net/nmap
Date: Sun, 5 Jun 2011 23:10:13 +0000

 Module Name:	pkgsrc
 Committed By:	pettai
 Date:		Sun Jun  5 23:10:12 UTC 2011

 Modified Files:
 	pkgsrc/net/nmap: Makefile distinfo
 Added Files:
 	pkgsrc/net/nmap/patches: patch-am

 Log Message:
 Fixes PR pkg/44996


 To generate a diff of this commit:
 cvs rdiff -u -r1.80 -r1.81 pkgsrc/net/nmap/Makefile
 cvs rdiff -u -r1.49 -r1.50 pkgsrc/net/nmap/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/net/nmap/patches/patch-am

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: pettai@NetBSD.org
State-Changed-When: Sun, 05 Jun 2011 23:25:01 +0000
State-Changed-Why:
Suggested fixes committed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.