Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tftp/tftp_xfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ int tftp_read_data(struct tftp_xfer *xfer, struct tftp_packet *pack, int len)
tftp_printf("err[%d] msg:%s code:%d\n", ntohs(pack->info.code), pack->data, ntohs(pack->info.code));
return -TFTP_ECMD;
}
else if ((_private->block + 1) != pack->info.block)
else if ((_private->block + 1) != ntohs(pack->info.block))
{
tftp_printf("Bad block recv:%d != check:%d\n", _private->block + 1, pack->info.block);
tftp_printf("Bad block recv:%d != check:%d\n", _private->block + 1, ntohs(pack->info.block));
return -TFTP_EBLK;
}

Expand Down