Skip to content

Commit

Permalink
Compare the correct values
Browse files Browse the repository at this point in the history
Reported by herwin <[email protected]>
Resolves: https://bugzilla.samba.org/show_bug.cgi?id=10349

Signed-off-by: Simo Sorce <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>

Autobuild-User(master): Jeremy Allison <[email protected]>
Autobuild-Date(master): Fri Dec 27 20:39:54 CET 2013 on sn-devel-104
  • Loading branch information
simo5 authored and jrasamba committed Dec 27, 2013
1 parent ec499c3 commit ac7de80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/torture/pdbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac7de80

Please sign in to comment.