1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s4:torture/ntlmssp fix a compiler warning

about invalid array subscript

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Christian Ambach 2016-02-08 23:20:19 +01:00 committed by Andreas Schneider
parent fc8e507b48
commit 8ca0f14b5c

View File

@ -48,7 +48,6 @@ static bool ntlmssp_NEGOTIATE_MESSAGE_check(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->Version.version.Reserved[0], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[1], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[2], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[3], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.NTLMRevisionCurrent, NTLMSSP_REVISION_W2K3, "NTLMRevisionCurrent");
return true;
@ -116,7 +115,6 @@ static bool ntlmssp_CHALLENGE_MESSAGE_check(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->Version.version.Reserved[0], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[1], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[2], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[3], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.NTLMRevisionCurrent, NTLMSSP_REVISION_W2K3, "NTLMRevisionCurrent");
return true;
@ -270,7 +268,6 @@ static bool ntlmssp_AUTHENTICATE_MESSAGE_check(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->Version.version.Reserved[0], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[1], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[2], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.Reserved[3], 0x00, "Reserved");
torture_assert_int_equal(tctx, r->Version.version.NTLMRevisionCurrent, NTLMSSP_REVISION_W2K3, "NTLMRevisionCurrent");
return true;