From: Michael Brown Date: Thu, 10 Aug 2006 17:09:48 +0000 (+0000) Subject: Fixed variable name in assertion X-Git-Tag: v0.9.3~1101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5fa82b914a4119481674af4e69a7fc14740a0c;p=thirdparty%2Fipxe.git Fixed variable name in assertion --- diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c index 25c4202c0..c7c47cbee 100644 --- a/src/net/tcp/iscsi.c +++ b/src/net/tcp/iscsi.c @@ -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;