浏览代码

Quick hack to be able to accept transfers from servers that don't

supply options.
tags/v0.9.3
Michael Brown 17 年前
父节点
当前提交
f770744ee0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/net/udp/tftp.c

+ 2
- 0
src/net/udp/tftp.c 查看文件

@@ -433,6 +433,8 @@ static int tftp_rx_data ( struct tftp_request *tftp,
433 433
 	data_len = iob_len ( iobuf );
434 434
 
435 435
 	/* Check for correct block */
436
+	if ( ( tftp->state == -1 ) && ( block == 1 ) )
437
+		tftp->state = 0;
436 438
 	if ( block != ( tftp->state + 1 ) ) {
437 439
 		DBGC ( tftp, "TFTP %p received out-of-order block %d "
438 440
 		       "(expecting %d)\n", tftp, block, ( tftp->state + 1 ) );

正在加载...
取消
保存