s4-dbcheck: fix uninitialized errstr in err_dn_target_mismatch
authorMatthieu Patou <mat@matws.net>
Wed, 22 Jun 2011 17:28:25 +0000 (21:28 +0400)
committerMatthieu Patou <mat@samba.org>
Wed, 22 Jun 2011 19:22:27 +0000 (21:22 +0200)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Jun 22 21:22:27 CEST 2011 on sn-devel-104

source4/scripting/python/samba/dbchecker.py

index dd76cd878d8ce2787204a4522f27ff790ce2b44b..88fd0edf003540d0e3c677535e51087c1be0be13 100644 (file)
@@ -207,7 +207,7 @@ class dbcheck(object):
 
     ################################################################
     # handle a DN string being incorrect
-    def err_dn_target_mismatch(self, dn, attrname, val, dsdb_dn, correct_dn):
+    def err_dn_target_mismatch(self, dn, attrname, val, dsdb_dn, correct_dn, errstr):
         self.report("ERROR: incorrect DN string component for %s in object %s - %s" % (attrname, dn, val))
         dsdb_dn.dn = correct_dn
 
@@ -267,7 +267,8 @@ class dbcheck(object):
             # check the DN matches in string form
             if res[0].dn.extended_str() != dsdb_dn.dn.extended_str():
                 error_count += 1
-                self.err_dn_target_mismatch(obj.dn, attrname, val, dsdb_dn, res[0].dn)
+                self.err_dn_target_mismatch(obj.dn, attrname, val, dsdb_dn,
+                                            res[0].dn, "incorrect string version of DN")
                 continue
 
         return error_count