Browse Source

Fixed variable name in assertion

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
ea5fa82b91
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/net/tcp/iscsi.c

+ 1
- 1
src/net/tcp/iscsi.c View File

236
 	remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
236
 	remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
237
 	assert ( iscsi->command != NULL );
237
 	assert ( iscsi->command != NULL );
238
 	assert ( iscsi->command->data_out != NULL );
238
 	assert ( iscsi->command->data_out != NULL );
239
-	assert ( ( offset + len ) <= iscsi->command->data_out_len );
239
+	assert ( ( offset + remaining ) <= iscsi->command->data_out_len );
240
 	
240
 	
241
 	if ( remaining < len )
241
 	if ( remaining < len )
242
 		len = remaining;
242
 		len = remaining;

Loading…
Cancel
Save