summaryrefslogtreecommitdiff
path: root/source4/torture/auth/ntlmssp.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-04-14 11:32:04 +0200
committerAndrew Tridgell <tridge@samba.org>2008-04-14 11:32:04 +0200
commit7361899e80c1001eb7d7c13b12ba72cbc3b758f2 (patch)
treeb8e7547f0981c487e328b1aad996850a5378fe35 /source4/torture/auth/ntlmssp.c
parent275f32ae2df333c089343dd20fc4efee1bed2b7b (diff)
parent2bb20aa8a8ff1170fd4d2a349a421990b0d7c235 (diff)
downloadsamba-7361899e80c1001eb7d7c13b12ba72cbc3b758f2.tar.gz
samba-7361899e80c1001eb7d7c13b12ba72cbc3b758f2.tar.bz2
samba-7361899e80c1001eb7d7c13b12ba72cbc3b758f2.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 068c973dbeed5b0f5ccab4f780ae7db3535f5910)
Diffstat (limited to 'source4/torture/auth/ntlmssp.c')
-rw-r--r--source4/torture/auth/ntlmssp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/auth/ntlmssp.c b/source4/torture/auth/ntlmssp.c
index 9366de986a..917a24ad59 100644
--- a/source4/torture/auth/ntlmssp.c
+++ b/source4/torture/auth/ntlmssp.c
@@ -69,7 +69,7 @@ static bool torture_ntlmssp_self_check(struct torture_context *tctx)
torture_assert_int_equal(tctx, sig.length, expected_sig.length, "Wrong sig length");
- torture_assert(tctx, 0 == memcmp(sig.data, expected_sig.data, sig.length),
+ torture_assert_mem_equal(tctx, sig.data, expected_sig.data, sig.length,
"data mismatch");
torture_assert_ntstatus_equal(tctx,
@@ -123,7 +123,7 @@ static bool torture_ntlmssp_self_check(struct torture_context *tctx)
torture_assert_int_equal(tctx, sig.length, expected_sig.length, "Wrong sig length");
- torture_assert(tctx, 0 == memcmp(sig.data+8, expected_sig.data+8, sig.length-8),
+ torture_assert_mem_equal(tctx, sig.data+8, expected_sig.data+8, sig.length-8,
"data mismatch");
torture_assert_ntstatus_equal(tctx,