Skip to content

ftp: Ensure to include command in Curl_ftpsend() sendbuffer - #2985

Closed
danielgustafsson wants to merge 2 commits into
curl:masterfrom
danielgustafsson:dg-ftpsend
Closed

danielgustafsson wants to merge 2 commits into
curl:masterfrom
danielgustafsson:dg-ftpsend

Conversation

@danielgustafsson

Copy link
Copy Markdown
Contributor

Commit 8238ba9 inadvertently removed the actual command to be sent from the send buffer in a refactoring. Add back copying the command into the buffer. Also add more guards against malformed input while at it. There seems to be a lack of testing of this module, but I'm not really sure how to improve that right now so I'll leave that for another PR.

Also comes with a bonus tiny memleak fix in krb5.c which was the original reason for spotting this.

Commit 8238ba9 inadvertently removed
the actual command to be sent from the send buffer in a refactoring.
Add back copying the command into the buffer. Also add more guards
against malformed input while at it.
The FTP command allocated by aprintf() must be freed after usage.
@lock lock Bot locked as resolved and limited conversation to collaborators Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants