Revert "Hopefully fix TFTP rollover hack"

This reverts commit 1724f8b4c0.
This commit is contained in:
Joseph C. Lehner 2019-09-05 15:25:57 +02:00
parent ed27079ff5
commit 68fb396869

4
tftp.c
View file

@ -439,13 +439,9 @@ int tftp_put(struct nmrpd_args *args)
* block #65535 - reported working on a Netgear D7000. * block #65535 - reported working on a Netgear D7000.
*/ */
block = UINT16_MAX; block = UINT16_MAX;
pkt_mknum(tx + 2, block);
freeze_block = true; freeze_block = true;
errors = 0; errors = 0;
printf("Transmitting rest of file as block %d.\n", block); printf("Transmitting rest of file as block %d.\n", block);
/* this forces transmission of the modified packet */
timeouts = 1;
continue;
} else { } else {
fprintf(stderr, "Protocol error; bailing out.\n"); fprintf(stderr, "Protocol error; bailing out.\n");
ret = -1; ret = -1;