]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tftp: handle tftp_multi_statemach() return code
authorDaniel Stenberg <daniel@haxx.se>
Sat, 20 Sep 2025 12:56:03 +0000 (14:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 20 Sep 2025 15:25:35 +0000 (17:25 +0200)
Previously just ignored.

Reported in Joshua's sarif data

Closes #18638

lib/tftp.c

index 84b92ee488270d426057defaced8df8dee782a61..7dc06261b2c402be75d5c3b8ad8923bd71869175 100644 (file)
@@ -1310,7 +1310,7 @@ static CURLcode tftp_perform(struct Curl_easy *data, bool *dophase_done)
   if((state->state == TFTP_STATE_FIN) || result)
     return result;
 
-  tftp_multi_statemach(data, dophase_done);
+  result = tftp_multi_statemach(data, dophase_done);
 
   if(*dophase_done)
     DEBUGF(infof(data, "DO phase is complete"));