aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 12597311a..e75c29043 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3087,7 +3087,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
if(data->set.use_port && data->state.allow_port) {
/* if set, we use this and ignore the port possibly given in the URL */
- conn->remote_port = data->set.use_port;
+ conn->remote_port = (unsigned short)data->set.use_port;
if(tmp)
*tmp = '\0'; /* cut off the name there anyway - if there was a port
number - since the port number is to be ignored! */