mirror of
https://github.com/curl/curl.git
synced 2026-07-24 15:07:21 +03:00
ftp: remove two redundant assignments
Follow-up to 29bca12978
Pointed out by CodeSonar
Closes #20755
This commit is contained in:
parent
b2076d3c2f
commit
b48d02179a
1 changed files with 0 additions and 3 deletions
|
|
@ -933,7 +933,6 @@ static CURLcode ftp_port_parse_string(struct Curl_easy *data,
|
|||
#ifdef USE_IPV6
|
||||
if(curlx_inet_pton(AF_INET6, string_ftpport, &sa6->sin6_addr) == 1) {
|
||||
/* ipv6 */
|
||||
port_min = port_max = 0;
|
||||
addrlen = strlen(string_ftpport);
|
||||
ip_end = NULL; /* this got no port ! */
|
||||
}
|
||||
|
|
@ -959,8 +958,6 @@ static CURLcode ftp_port_parse_string(struct Curl_easy *data,
|
|||
else
|
||||
port_max = port_min;
|
||||
}
|
||||
else
|
||||
port_max = port_min;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue