From ec38cb0096648e916660958ac48c121e303debf1 Mon Sep 17 00:00:00 2001 From: nnposter Date: Tue, 12 Jun 2018 01:12:08 +0000 Subject: [PATCH] Removes extraneous bracket from literal IPv6 URLs. Closes #1237 --- CHANGELOG | 3 +++ ncat/ncat_connect.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index c62152bef..eaba48b5b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ #Nmap Changelog ($Id$); -*-text-*- +o [Ncat][GH#1237] Fixed literal IPv6 URL format for connecting through + HTTP proxies. [Phil Dibowitz] + o [NSE][GH#1212] Updates vendors from ODVA list for enip-info. [NothinRandom] o [NSE][GH#1191] Add two common error strings that improve MySQL detection diff --git a/ncat/ncat_connect.c b/ncat/ncat_connect.c index 56ba6101a..97cf787d5 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;