pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44996: two enhancements for net/nmap



>Number:         44996
>Category:       pkg
>Synopsis:       two enhancements for net/nmap
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 26 11:35:00 +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);



Home | Main Index | Thread Index | Old Index