]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/torture/pdbtest: fix always false condition
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 9 Dec 2021 05:06:15 +0000 (18:06 +1300)
committerVolker Lendecke <vl@samba.org>
Wed, 26 Jan 2022 11:44:32 +0000 (11:44 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9320

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/torture/pdbtest.c

index 67a1aa0b2d59120a85983ae86b0df9c823a855ea..d3895127af20f6f6b7be3f9394bcdf74350c53b6 100644 (file)
@@ -191,7 +191,7 @@ static bool samu_correct(struct samu *s1, struct samu *s2)
        } else if (pdb_get_hours_len(s1) != 0) {
                d1_buf = pdb_get_hours(s1);
                d2_buf = pdb_get_hours(s2);
-               if (d2_buf == NULL && d2_buf != NULL) {
+               if (d2_buf == NULL && d1_buf != NULL) {
                        DEBUG(0, ("Logon hours is not set\n"));
                        ret = False;
                } else if (d1_buf == NULL) {