tftp: return error if it hits an illegal state

Reported-by: Joshua Rogers
Closes #18894
This commit is contained in:
Daniel Stenberg 2025-10-06 18:25:55 +02:00
parent bc90f80556
commit 3660e6da80
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;