|
@@ -236,7 +236,7 @@ static void iscsi_tx_data_out ( struct iscsi_session *iscsi,
|
236
|
236
|
remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
|
237
|
237
|
assert ( iscsi->command != NULL );
|
238
|
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
|
241
|
if ( remaining < len )
|
242
|
242
|
len = remaining;
|