summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-26 10:46:49 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-27 09:18:51 +0100
commit642d78026f409cfb5b31affc271a0eb8298e8020 (patch)
treecb8405e4dd4437e326660b2b96c787b3f2978c30 /lib/ftp.c
parent32766cb4db0d71b06fe2a2d829e51e3404b65c24 (diff)
downloadcurl-642d78026f409cfb5b31affc271a0eb8298e8020.tar.gz
urldata: remove the duplicate 'ip_addr_str' field
... as the numerical IP address is already stored and kept in 'primary_ip'. Closes #6534
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index ab6685ade..3818a9ea4 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1819,7 +1819,7 @@ static char *control_address(struct connectdata *conn)
if(conn->bits.tunnel_proxy || conn->bits.socksproxy)
return conn->host.name;
#endif
- return conn->ip_addr_str;
+ return conn->primary_ip;
}
static CURLcode ftp_state_pasv_resp(struct Curl_easy *data,