b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/tftp_io.c |
2 | +++ b/tftp_io.c | ||||
3 | @@ -64,7 +64,7 @@ int tftp_send_request(int socket, struct | ||||
4 | buf_index += strlen(mode); | ||||
5 | buf_index++; | ||||
6 | |||||
7 | - for (i = 2; ; i++) | ||||
8 | + for (i = 2; i < OPT_NUMBER; i++) | ||||
9 | { | ||||
10 | if (strlen(tftp_options[i].option) == 0) | ||||
11 | break; |