Skip to content

Commit

Permalink
Quick hack to be able to accept transfers from servers that don't
Browse files Browse the repository at this point in the history
supply options.
  • Loading branch information
Michael Brown committed Nov 25, 2007
1 parent 7f1518b commit f770744
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/net/udp/tftp.c
Expand Up @@ -433,6 +433,8 @@ static int tftp_rx_data ( struct tftp_request *tftp,
data_len = iob_len ( iobuf );

/* Check for correct block */
if ( ( tftp->state == -1 ) && ( block == 1 ) )
tftp->state = 0;
if ( block != ( tftp->state + 1 ) ) {
DBGC ( tftp, "TFTP %p received out-of-order block %d "
"(expecting %d)\n", tftp, block, ( tftp->state + 1 ) );
Expand Down

0 comments on commit f770744

Please sign in to comment.