1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00

Default port is set to -1 (and not zero) when not specified in proxy specification string.

This commit is contained in:
henri
2013-04-22 19:32:44 +00:00
parent 99258673ad
commit b7b3b4bd3e

View File

@@ -91,7 +91,7 @@ int proxy_http_node_new(struct proxy_node **node, const struct uri *uri) {
proxy->sslen = sizeof(struct sockaddr_in);
if (uri->port == 0)
if (uri->port == -1)
proxy->port = DEFAULT_PROXY_PORT_HTTP;
else
proxy->port = (unsigned short)uri->port;