Fix crash on systemd with disabled ipv6
This commit is contained in:
parent
6df702fe99
commit
0fccd50743
@ -7,7 +7,7 @@ Name: nmap
|
||||
Epoch: 3
|
||||
Version: 7.80
|
||||
#global prerelease TEST5
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
Summary: Network exploration tool and security scanner
|
||||
URL: http://nmap.org/
|
||||
# Uses combination of licenses based on GPL license, but with extra modification
|
||||
@ -31,6 +31,8 @@ Patch4: nmap-6.25-displayerror.patch
|
||||
# https://github.com/nmap/nmap/commit/33f421fd6e68fcb8ed50071661d9704717c81b2b.patch
|
||||
Patch5: nmap-unsolicited_arp_assert.patch
|
||||
Patch6: nmap-safe_fd_functions.patch
|
||||
# https://github.com/nmap/nmap/pull/2247
|
||||
Patch7: nmap_resolve_config.patch
|
||||
|
||||
|
||||
BuildRequires: automake make
|
||||
@ -143,6 +145,9 @@ ln -s ncat %{buildroot}%{_bindir}/nc
|
||||
%{_mandir}/man1/ncat.1.gz
|
||||
|
||||
%changelog
|
||||
* Wed Jan 13 2021 Pavel Zhukov <pzhukov@redhat.com> - 3:7.80-10
|
||||
- Do not listen on ipv6 if it's disabled
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3:7.80-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
12
nmap_resolve_config.patch
Normal file
12
nmap_resolve_config.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/ncat/ncat_core.c b/ncat/ncat_core.c
|
||||
index b76d5ea..9f0b0cf 100644
|
||||
--- a/ncat/ncat_core.c
|
||||
+++ b/ncat/ncat_core.c
|
||||
@@ -289,6 +289,7 @@ int resolve(const char *hostname, unsigned short port,
|
||||
int result;
|
||||
|
||||
flags = 0;
|
||||
+ flags |= AI_ADDRCONFIG;
|
||||
if (o.nodns)
|
||||
flags |= AI_NUMERICHOST;
|
||||
|
Loading…
Reference in New Issue
Block a user