Blame SOURCES/nmap-unix_crash.patch

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