Blame SOURCES/nmap-unix_crash.patch

b8d2c8
From f6b40614e4a8131394792d590965f8af3c635323 Mon Sep 17 00:00:00 2001
b8d2c8
From: nnposter <nnposter@e0a8ed71-7df4-0310-8962-fdc924857419>
b8d2c8
Date: Fri, 16 Oct 2020 02:54:52 +0000
b8d2c8
Subject: [PATCH] Fix a Unix domain socket crash. Fixes #2154
b8d2c8
b8d2c8
---
b8d2c8
 CHANGELOG        | 2 ++
b8d2c8
 ncat/ncat_main.c | 4 ++--
b8d2c8
 2 files changed, 4 insertions(+), 2 deletions(-)
b8d2c8
b8d2c8
diff --git a/ncat/ncat_main.c b/ncat/ncat_main.c
b8d2c8
index 8942d83cb9..2792a6ac24 100644
b8d2c8
--- a/ncat/ncat_main.c
b8d2c8
+++ b/ncat/ncat_main.c
b8d2c8
@@ -846,7 +846,7 @@ int main(int argc, char *argv[])
b8d2c8
             targetaddrs->addr.un.sun_family = AF_UNIX;
b8d2c8
             strncpy(targetaddrs->addr.un.sun_path, argv[optind], sizeof(targetaddrs->addr.un.sun_path));
b8d2c8
             targetaddrs->addrlen = SUN_LEN(&targetaddrs->addr.un);
b8d2c8
-            o.target = argv[optind];
b8d2c8
+            o.sslservername = o.target = argv[optind];
b8d2c8
             optind++;
b8d2c8
         } else
b8d2c8
 #endif
b8d2c8
@@ -865,7 +865,7 @@ int main(int argc, char *argv[])
b8d2c8
                 targetaddrs->addr.vm.svm_cid = long_cid;
b8d2c8
 
b8d2c8
                 targetaddrs->addrlen = sizeof(targetaddrs->addr.vm);
b8d2c8
-                o.target = argv[optind];
b8d2c8
+                o.sslservername = o.target = argv[optind];
b8d2c8
                 optind++;
b8d2c8
             }
b8d2c8
         } else