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