Skip to content

cf-socket: skip calling getpeername() for TFTP#11332

Closed
bagder wants to merge 4 commits intomasterfrom
bagder/getpeername-tftp
Closed

cf-socket: skip calling getpeername() for TFTP#11332
bagder wants to merge 4 commits intomasterfrom
bagder/getpeername-tftp

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Jun 17, 2023

Since the socket is not connected then the call fails. When the call fails, failf() is called to write an error message that is then surviving and is returned when the real error occurs later. The earlier, incorrect, error therefore hides the actual error message.

This could be seen in stderr for test 1007

Test 1007 has now been extended to verify the stderr message.

@bagder bagder added the TFTP label Jun 17, 2023
@github-actions github-actions bot added the tests label Jun 17, 2023
bagder added 2 commits June 18, 2023 11:22
Since the socket is not connected then the call fails. When the call
fails, failf() is called to write an error message that is then
surviving and is returned when the *real* error occurs later. The
earlier, incorrect, error therefore hides the actual error message.

This could be seen in stderr for test 1007

Test 1007 has now been extended to verify the stderr message.
@bagder bagder force-pushed the bagder/getpeername-tftp branch from d082843 to 1a6b5a8 Compare June 18, 2023 09:22
@bagder bagder closed this in 355f414 Jun 19, 2023
@bagder bagder deleted the bagder/getpeername-tftp branch June 19, 2023 07:41
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
Since the socket is not connected then the call fails. When the call
fails, failf() is called to write an error message that is then
surviving and is returned when the *real* error occurs later. The
earlier, incorrect, error therefore hides the actual error message.

This could be seen in stderr for test 1007

Test 1007 has now been extended to verify the stderr message.

Closes curl#11332
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
Since the socket is not connected then the call fails. When the call
fails, failf() is called to write an error message that is then
surviving and is returned when the *real* error occurs later. The
earlier, incorrect, error therefore hides the actual error message.

This could be seen in stderr for test 1007

Test 1007 has now been extended to verify the stderr message.

Closes curl#11332
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