mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-18 11:34:30 +00:00
Quick hack to be able to accept transfers from servers that don't
supply options.
This commit is contained in:
parent
7f1518b236
commit
f770744ee0
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user