From 21a8af6c0860d31b81b4f95aabf26c5578c19f05 Mon Sep 17 00:00:00 2001 From: david Date: Sun, 5 May 2013 10:21:46 +0000 Subject: [PATCH] Fix Ncat IPv6 HTTP CONNECT proxy syntax. Patch by Joachim Henke. http://seclists.org/nmap-dev/2013/q1/413 --- ncat/ncat_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncat/ncat_connect.c b/ncat/ncat_connect.c index 052b6f191..d838aac3e 100644 --- a/ncat/ncat_connect.c +++ b/ncat/ncat_connect.c @@ -277,7 +277,7 @@ static const char *sock_to_url(const union sockaddr_u *su) if (su->storage.ss_family == AF_INET) Snprintf(buf, sizeof(buf), "%s:%hu", host_str, port); else if (su->storage.ss_family == AF_INET6) - Snprintf(buf, sizeof(buf), "[%s]:%hu]", host_str, port); + Snprintf(buf, sizeof(buf), "[%s]:%hu", host_str, port); else bye("Unknown address family in sock_to_url_host.");