Skip to content

ftp: fix temp write of ipv6 address#11747

Closed
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_ftp_tmp_write
Closed

ftp: fix temp write of ipv6 address#11747
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_ftp_tmp_write

Conversation

@jay
Copy link
Member

@jay jay commented Aug 28, 2023

  • During the check to differentiate between a port and IPv6 address without brackets, write the binary IPv6 address to an in6_addr.

Prior to this change the binary IPv6 address was erroneously written to a sockaddr_in6 'sa6' when it should have been written to its in6_addr member 'sin6_addr'. There's no fallout because no members of 'sa6' are accessed before it is later overwritten.

Closes #xxxx

- During the check to differentiate between a port and IPv6 address
  without brackets, write the binary IPv6 address to an in6_addr.

Prior to this change the binary IPv6 address was erroneously written to
a sockaddr_in6 'sa6' when it should have been written to its in6_addr
member 'sin6_addr'. There's no fallout because no members of 'sa6' are
accessed before it is later overwritten.

Closes #xxxx
@jay jay added the FTP label Aug 28, 2023
@jay jay closed this in 2fe97dc Aug 30, 2023
@jay jay deleted the fix_ftp_tmp_write branch August 30, 2023 07:24
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
- During the check to differentiate between a port and IPv6 address
  without brackets, write the binary IPv6 address to an in6_addr.

Prior to this change the binary IPv6 address was erroneously written to
a sockaddr_in6 'sa6' when it should have been written to its in6_addr
member 'sin6_addr'. There's no fallout because no members of 'sa6' are
accessed before it is later overwritten.

Closes curl#11747
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant