In tftp_xfer.c file in In tftp_read_data() function, line 153, using pack->info.block to compare with (_private->block + 1), but because pack->info.block is from the network package,so need use ntohs() to transfer the endian. I think the correction code should be:
else if ((_private->block + 1) != ntohs(pack->info.block))
In tftp_xfer.c file in In tftp_read_data() function, line 153, using pack->info.block to compare with (_private->block + 1), but because pack->info.block is from the network package,so need use ntohs() to transfer the endian. I think the correction code should be:
else if ((_private->block + 1) != ntohs(pack->info.block))