← Commit list

f1ed50a517

Daniel Stenberg
Daniel Stenberg
2025-10-06
SUCCESS Duration: 151s

Subject

tftp: don't pin or check address if recvfrom returns error

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/tftp.c+1 -1
@@ -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) ||