From 219a0fbe76204e2505a9143aeb149336c7f5683b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 5 Mar 2014 17:38:05 +0000 Subject: remote_port: allow connect to port 0 Port number zero is perfectly allowed to connect to. I moved to storing the remote port number in an int so that -1 means undefined and 0-65535 can be used for legitimate port numbers. --- lib/http_proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/http_proxy.c') diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 556abf1a7..adcfe42dd 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -92,7 +92,7 @@ CURLcode Curl_proxy_connect(struct connectdata *conn) CURLcode Curl_proxyCONNECT(struct connectdata *conn, int sockindex, const char *hostname, - unsigned short remote_port) + int remote_port) { int subversion=0; struct SessionHandle *data=conn->data; -- cgit v1.2.3