aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 013ebac70..d85c61404 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -930,7 +930,7 @@ ConnectionExists(struct UrlData *data,
if(strequal(needle->protostr, check->protostr) &&
strequal(needle->name, check->name) &&
- (needle->port == check->port) ) {
+ (needle->remote_port == check->remote_port) ) {
bool dead;
if(strequal(needle->protostr, "FTP")) {
/* This is FTP, verify that we're using the same name and