nmap/nmap-ipv6_literal_proxy.patch
2022-08-25 16:14:21 +00:00

14 lines
489 B
Diff

diff --git a/ncat/ncat_connect.c b/ncat/ncat_connect.c
index 0968601..447aeb1 100644
--- a/ncat/ncat_connect.c
+++ b/ncat/ncat_connect.c
@@ -353,7 +353,7 @@ static const char *sock_to_url(char *host_str, unsigned short port)
Snprintf(buf, sizeof(buf), "%s:%hu", host_str, port);
break;
case 2:
- Snprintf(buf, sizeof(buf), "[%s]:%hu]", host_str, port);
+ Snprintf(buf, sizeof(buf), "[%s]:%hu", host_str, port);
}
return buf;