Fixed variable name in assertion
authorMichael Brown <mcb30@etherboot.org>
Thu, 10 Aug 2006 17:09:48 +0000 (17:09 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 10 Aug 2006 17:09:48 +0000 (17:09 +0000)
src/net/tcp/iscsi.c

index 25c4202..c7c47cb 100644 (file)
@@ -236,7 +236,7 @@ static void iscsi_tx_data_out ( struct iscsi_session *iscsi,
        remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
        assert ( iscsi->command != NULL );
        assert ( iscsi->command->data_out != NULL );
-       assert ( ( offset + len ) <= iscsi->command->data_out_len );
+       assert ( ( offset + remaining ) <= iscsi->command->data_out_len );
        
        if ( remaining < len )
                len = remaining;