From: Daniel Stenberg Date: Mon, 6 Oct 2025 16:25:55 +0000 (+0200) Subject: tftp: return error if it hits an illegal state X-Git-Tag: rc-8_17_0-1~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3660e6da80764b7dc184af51556d158d5a352a48;p=thirdparty%2Fcurl.git tftp: return error if it hits an illegal state Reported-by: Joshua Rogers Closes #18894 --- diff --git a/lib/tftp.c b/lib/tftp.c index 56b7afda52..8279f29e65 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -564,7 +564,7 @@ static CURLcode tftp_send_first(struct tftp_conn *state, default: failf(state->data, "tftp_send_first: internal error"); - break; + return CURLE_TFTP_ILLEGAL; } return result;