]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
kcc: Don't reuse outer loop variable for inner loop
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 May 2022 09:40:34 +0000 (21:40 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 10 May 2022 05:19:34 +0000 (05:19 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/kcc/ldif_import_export.py

index 7ec553edcb94abe369ae8c979fc85044ad785dac..578330dda0e4c7da815fcb863f64e96dd11ecc15 100644 (file)
@@ -226,10 +226,10 @@ def samdb_to_ldif_file(samdb, dburl, lp, creds, ldif_file):
             # Spin thru all the DSAs looking for NC replicas
             # and build a list of all possible Naming Contexts
             # for subsequent retrieval below
-            for msg in res:
-                for k in msg.keys():
+            for res_msg in res:
+                for k in res_msg.keys():
                     if k in ncattrs:
-                        for value in msg[k]:
+                        for value in res_msg[k]:
                             # Some of these have binary DNs so
                             # use dsdb_Dn to split out relevent parts
                             dsdn = dsdb_Dn(samdb, value.decode('utf8'))