mirror of
https://github.com/curl/curl.git
synced 2026-07-28 01:33:11 +03:00
tftp: don't pin or check address if recvfrom returns error
Follow-up to c4f9977c66
Reported-by: Joshua Rogers
Closes #18892
This commit is contained in:
parent
1a3a5cb720
commit
f1ed50a517
1 changed files with 1 additions and 1 deletions
|
|
@ -1105,7 +1105,7 @@ static CURLcode tftp_receive_packet(struct Curl_easy *data,
|
|||
0,
|
||||
(struct sockaddr *)&remote_addr,
|
||||
&fromlen);
|
||||
if(fromlen) {
|
||||
if((state->rbytes >= 0) && fromlen) {
|
||||
if(state->remote_pinned) {
|
||||
/* pinned, verify that it comes from the same address */
|
||||
if((state->remote_addrlen != fromlen) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue