← Commit list

6597e6d461

Daniel Stenberg
Daniel Stenberg
2026-05-28
SUCCESS Duration: 233s

Subject

tftp: avoid the timeout calc if the timeout is crazy

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+2 -1
@@ -167,7 +167,8 @@ static CURLcode tftp_set_timeouts(struct tftp_conn *state)
}
/* Set per-block timeout to total */
- if(timeout_ms > 0)
+ if((timeout_ms > 0) && (timeout_ms < 3600000))
+ /* do the calculation only if the timeout is "reasonable" */
timeout = (time_t)(timeout_ms + 500) / 1000;
else
timeout = 15;