blob: e1cad03b95291654feca549689cc0b4bdc7348ce [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- 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;