]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
drs_utils: Make loop exit condition explicit
authorJennifer Sutton <jennifersutton@catalyst.net.nz>
Tue, 6 Aug 2024 03:38:57 +0000 (15:38 +1200)
committerJo Sutton <jsutton@samba.org>
Mon, 26 May 2025 02:41:36 +0000 (02:41 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852

Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/drs_utils.py

index 6142349be891595762c9cc6de94679f6783a774b..ab2d37e133c49d454a999046f8ee8011f0e4b874 100644 (file)
@@ -231,10 +231,7 @@ class drs_Replicate(object):
 
         object_to_check = ctr.first_object
 
-        while True:
-            if object_to_check is None:
-                break
-
+        while object_to_check is not None:
             self.guids_seen.add(str(object_to_check.object.identifier.guid))
 
             if object_to_check.parent_object_guid is not None \