diff options
author | Sam James <sam@gentoo.org> | 2021-03-11 18:14:02 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-11 18:14:02 +0000 |
commit | b2d8627328c93bdd62a507f7e78228a8e00de59e (patch) | |
tree | a9725ff91101ae3889aff04ac45f75cc58de5a2c /net-analyzer/nmap/files/nmap-7.91-ncat-unix-sockets.patch | |
parent | profiles/arch/arm64: drop another dev-python/python-neutronclient[test] mask (diff) | |
download | gentoo-b2d8627328c93bdd62a507f7e78228a8e00de59e.tar.gz gentoo-b2d8627328c93bdd62a507f7e78228a8e00de59e.tar.bz2 gentoo-b2d8627328c93bdd62a507f7e78228a8e00de59e.zip |
net-analyzer/nmap: add upstream patches for ncat
Closes: https://bugs.gentoo.org/765148
Closes: https://bugs.gentoo.org/770808
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/nmap/files/nmap-7.91-ncat-unix-sockets.patch')
-rw-r--r-- | net-analyzer/nmap/files/nmap-7.91-ncat-unix-sockets.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net-analyzer/nmap/files/nmap-7.91-ncat-unix-sockets.patch b/net-analyzer/nmap/files/nmap-7.91-ncat-unix-sockets.patch new file mode 100644 index 000000000000..f617fd4b134c --- /dev/null +++ b/net-analyzer/nmap/files/nmap-7.91-ncat-unix-sockets.patch @@ -0,0 +1,30 @@ +https://bugs.gentoo.org/765148 +https://github.com/nmap/nmap/commit/f6b40614e4a8131394792d590965f8af3c635323 + +From f6b40614e4a8131394792d590965f8af3c635323 Mon Sep 17 00:00:00 2001 +From: nnposter <nnposter@e0a8ed71-7df4-0310-8962-fdc924857419> +Date: Fri, 16 Oct 2020 02:54:52 +0000 +Subject: [PATCH] Fix a Unix domain socket crash. Fixes #2154 + +diff --git a/ncat/ncat_main.c b/ncat/ncat_main.c +index 8942d83cb9..2792a6ac24 100644 +--- a/ncat/ncat_main.c ++++ b/ncat/ncat_main.c +@@ -846,7 +846,7 @@ int main(int argc, char *argv[]) + targetaddrs->addr.un.sun_family = AF_UNIX; + strncpy(targetaddrs->addr.un.sun_path, argv[optind], sizeof(targetaddrs->addr.un.sun_path)); + targetaddrs->addrlen = SUN_LEN(&targetaddrs->addr.un); +- o.target = argv[optind]; ++ o.sslservername = o.target = argv[optind]; + optind++; + } else + #endif +@@ -865,7 +865,7 @@ int main(int argc, char *argv[]) + targetaddrs->addr.vm.svm_cid = long_cid; + + targetaddrs->addrlen = sizeof(targetaddrs->addr.vm); +- o.target = argv[optind]; ++ o.sslservername = o.target = argv[optind]; + optind++; + } + } else |