Skip to content

ftp: do not strdup DATA hostname - #20953

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:ftp-secondaryhostname-dup
Closed

icing wants to merge 1 commit into
curl:masterfrom
icing:ftp-secondaryhostname-dup

Conversation

@icing

@icing icing commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Since newhost is already allocated, we do not need to strdup() it. Just assign and NULL the reference.

Since `newhost` is already allocated, we do not need to strdup()
it. Just assign and NULL the reference.
@github-actions github-actions Bot added the FTP label Mar 17, 2026
@icing
icing requested review from bagder and vszakats and removed request for vszakats March 17, 2026 12:32
@bagder bagder closed this in 2e2d021 Mar 17, 2026
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Since `newhost` is already allocated, we do not need to strdup()
it. Just assign and NULL the reference.

Closes curl#20953
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.

2 participants