From ac7de8021050e560d39f613ea4a2caab06c7a2a8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 25 Dec 2013 23:28:58 -0500 Subject: Compare the correct values Reported by herwin Resolves: https://bugzilla.samba.org/show_bug.cgi?id=10349 Signed-off-by: Simo Sorce Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Dec 27 20:39:54 CET 2013 on sn-devel-104 --- source3/torture/pdbtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c index 17da455256..df2c326378 100644 --- a/source3/torture/pdbtest.c +++ b/source3/torture/pdbtest.c @@ -117,7 +117,7 @@ static bool samu_correct(struct samu *s1, struct samu *s2) DEBUG(0, ("Password history is not set\n")); } else if (d1_buf == NULL) { /* Do nothing */ - } else if (s1_len != s1_len) { + } else if (s1_len != s2_len) { DEBUG(0, ("Password history not written correctly, lengths differ, want %d, got %d\n", s1_len, s2_len)); ret = False; -- cgit