nmap: update to 7.991

Changelog: https://nmap.org/changelog.html#7.991

Add patch to fix compilation when NOLUA flag is defined.
Add git am header to 030-ncat-drop-ca-bundle.patch, refresh patches

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
This commit is contained in:
Ivan Pavlov authored and Nuno Goncalves committed 2026-08-29 09:49:22 +01:00
1 parent 11474ce3b7
commit 501866ed42
4 files changed
+39 -6

No files matched your search

+2 -2
View File
@@ -13,13 +13,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=nmap
PKG_VERSION:=7.99
PKG_VERSION:=7.991
PKG_RELEASE:=1
PKG_MAINTAINER:=Nuno Gonçalves <nunojpg@gmail.com>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://nmap.org/dist/
PKG_HASH:=df512492ffd108e53a27a06f26d8635bbe89e0e569455dc8ffef058c035d51b2
PKG_HASH:=a5d507f29437bef3bedd4771ff9aaa8fc1c2a109ddba1f5b1cf12027456929be
PKG_LICENSE:=NPSL-0.95
PKG_LICENSE_FILES:=LICENSE
@@ -0,0 +1,30 @@
From 9126a3bac1d508619ba1eb2d451d5f915710c3eb Mon Sep 17 00:00:00 2001
From: Ivan Pavlov <AuthorReflex@gmail.com>
Date: Wed, 12 Aug 2026 11:21:17 +0300
Subject: [PATCH] Fix compilation when NOLUA flag is defined
Commit a24082eee41f ("Close/unload NSE with --release-mem to resolve
false-positive memory leaks") added a call to function close_nse(),
which is declared in file nse_main.h; this file is included conditionally
when NOLUA flag is not defined. If the condition is not met, a compilation
error occurs. Fixing by adding conditional compilation for the function call.
Fixes: a24082eee41f ("Close/unload NSE with --release-mem to resolve false-positive memory leaks")
Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
---
nmap.cc | 2 ++
1 file changed, 2 insertions(+)
--- a/nmap.cc
+++ b/nmap.cc
@@ -1858,7 +1858,9 @@ void nmap_free_mem() {
AllProbes::service_scan_free();
traceroute_hop_cache_clear();
nsock_set_default_engine(NULL);
+#ifndef NOLUA
close_nse();
+#endif
}
int nmap_main(int argc, char *argv[]) {
@@ -1,5 +1,8 @@
Author: Konstantin Demin <rockdrilla@gmail.com>
Title: ncat: avoid shipping/using internal ca-bundle.crt
From c8793c02857d8d7ad2981cd862223e42862f9059 Mon Sep 17 00:00:00 2001
From: Konstantin Demin <rockdrilla@gmail.com>
Date: Wed, 31 Jan 2024 12:24:53 +0300
Subject: [PATCH] nmap: ncat: avoid shipping/using internal ca-bundle.crt
1. ca-bundle.crt may provide outdated trusted CAs.
2. maintain trusted CAs in one place.
@@ -23,7 +26,7 @@ Also remove references to NCAT_CA_CERTS_FILE and NCAT_CA_CERTS_PATH in order to
ifneq ($(NOLUA),yes)
--- a/ncat/ncat_posix.c
+++ b/ncat/ncat_posix.c
@@ -409,28 +409,17 @@ void set_lf_mode(void)
@@ -433,28 +433,17 @@ void set_lf_mode(void)
#ifdef HAVE_OPENSSL
@@ -21,7 +21,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
--- a/nsock/src/nsock_connect.c
+++ b/nsock/src/nsock_connect.c
@@ -472,8 +472,12 @@ nsock_event_id nsock_connect_ssl(nsock_p
@@ -479,8 +479,12 @@ nsock_event_id nsock_connect_ssl(nsock_p
if (proto == IPPROTO_UDP)
{