tftp: handle tftp_multi_statemach() return code

Previously just ignored.

Reported in Joshua's sarif data

Closes #18638
This commit is contained in:
Daniel Stenberg 2025-09-20 14:56:03 +02:00
parent 277ebca610
commit ca8ec6e033
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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"));