summaryrefslogtreecommitdiff
path: root/source/torture/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-13 22:00:36 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-13 22:00:36 +0200
commite2c3fab9d1bf0482c15a115e7d373562ffe50b29 (patch)
treeaa4d575bc1a69a0141214ea9eed55ddeb4d2c1e9 /source/torture/auth
parentb6319b64d7ef9c58f771f338317d4d525d39a8f2 (diff)
downloadsamba-e2c3fab9d1bf0482c15a115e7d373562ffe50b29.tar.gz
Use torture_assert_mem_equal() in a couple more places.
Diffstat (limited to 'source/torture/auth')
-rw-r--r--source/torture/auth/ntlmssp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/torture/auth/ntlmssp.c b/source/torture/auth/ntlmssp.c
index 9366de986a4..917a24ad598 100644
--- a/source/torture/auth/ntlmssp.c
+++ b/source/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,