Skip to content

urlapi: normalize the IPv6 address - #15143

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/urlapi-ipv6
Closed

urlapi: normalize the IPv6 address#15143
bagder wants to merge 1 commit into
masterfrom
bagder/urlapi-ipv6

Conversation

@bagder

@bagder bagder commented Oct 3, 2024

Copy link
Copy Markdown
Member

As the parsing and address "regeneration" are done anyway, we might as well use the updated version in the result and thereby A) get a normalized (and lower cased) version of the address and B) avoid a strcpy().

Updated test 1560 to verify.

As the parsing and address "regeneration" are done anyway, we might as
well use the updated version in the result and thereby A) get a
normalized (and lower cased) version of the address and B) avoid a
strcpy().

Updated test 1560 to verify.
@bagder bagder added the URL label Oct 3, 2024
@github-actions github-actions Bot added the tests label Oct 3, 2024
@bagder bagder closed this in 566a6d7 Oct 3, 2024
@bagder
bagder deleted the bagder/urlapi-ipv6 branch October 3, 2024 14:05
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
As the parsing and address "regeneration" are done anyway, we might as
well use the updated version in the result and thereby A) get a
normalized (and lower cased) version of the address and B) avoid a
strcpy().

Updated test 1560 to verify.

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

Development

Successfully merging this pull request may close these issues.

1 participant