← Commit list

54aff4db3c

Daniel Stenberg
Daniel Stenberg
2025-09-18
FAILED Duration: 305s

Subject

tftp: check and act on tftp_set_timeouts() returning 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+4 -1
@@ -962,6 +962,7 @@ static CURLcode tftp_connect(struct Curl_easy *data, bool *done)
int need_blksize;
struct connectdata *conn = data->conn;
const struct Curl_sockaddr_ex *remote_addr = NULL;
+ CURLcode result;
blksize = TFTP_BLKSIZE_DEFAULT;
@@ -1013,7 +1014,9 @@ static CURLcode tftp_connect(struct Curl_easy *data, bool *done)
((struct sockaddr *)&state->local_addr)->sa_family =
(CURL_SA_FAMILY_T)(remote_addr->family);
- tftp_set_timeouts(state);
+ result = tftp_set_timeouts(state);
+ if(result)
+ return result;
if(!conn->bits.bound) {
/* If not already bound, bind to any interface, random UDP port. If it is