]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
SOCKS: fix typo in printf formatting
authorDaniel Stenberg <daniel@haxx.se>
Tue, 18 Feb 2020 11:54:02 +0000 (12:54 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 18 Feb 2020 11:54:44 +0000 (12:54 +0100)
Follow-up to 4a4b63daa

Reported-by: Peter Piekarski
Bug: https://github.com/curl/curl/commit/4a4b63daaa01ef59b131d91e8e6e6dfe275c0f08#r37351330

lib/socks.c

index ba05602be21d82a2bf5498e1ae2ec5aa8ae5abd7..0fb97e1e5db2327970856657fb73b73507a684e7 100644 (file)
@@ -838,7 +838,7 @@ CURLcode Curl_SOCKS5(const char *proxy_user,
       socksreq[len++] = (char) hostname_len; /* one byte address length */
       memcpy(&socksreq[len], hostname, hostname_len); /* address w/o NULL */
       len += hostname_len;
-      infof(data, "SOCKS5 connect to %s:5d (remotely resolved)\n",
+      infof(data, "SOCKS5 connect to %s:%d (remotely resolved)\n",
             hostname, remote_port);
     }
     /* FALLTHROUGH */