Quellcode durchsuchen

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

supply options.
tags/v0.9.3
Michael Brown vor 18 Jahren
Ursprung
Commit
f770744ee0
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      src/net/udp/tftp.c

+ 2
- 0
src/net/udp/tftp.c Datei anzeigen

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

Laden…
Abbrechen
Speichern