Compare the correct values
authorSimo Sorce <idra@samba.org>
Thu, 26 Dec 2013 04:28:58 +0000 (23:28 -0500)
committerJeremy Allison <jra@samba.org>
Fri, 27 Dec 2013 19:39:54 +0000 (20:39 +0100)
Reported by herwin <samba@herwinw.nl>
Resolves: https://bugzilla.samba.org/show_bug.cgi?id=10349

Signed-off-by: Simo Sorce <idra@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Dec 27 20:39:54 CET 2013 on sn-devel-104

source3/torture/pdbtest.c

index 17da45525643a92e332c0eb9eb4c72e37483aad3..df2c32637836c3a05b3c2f6fc95c6082324bcde0 100644 (file)
@@ -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;