From a9e45923369e3171cb7f42284f52ce3c4c8b0a4b Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Wed, 22 Jun 2011 21:28:25 +0400 Subject: [PATCH] s4-dbcheck: fix uninitialized errstr in err_dn_target_mismatch Autobuild-User: Matthieu Patou Autobuild-Date: Wed Jun 22 21:22:27 CEST 2011 on sn-devel-104 --- source4/scripting/python/samba/dbchecker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/scripting/python/samba/dbchecker.py b/source4/scripting/python/samba/dbchecker.py index dd76cd878d8..88fd0edf003 100644 --- a/source4/scripting/python/samba/dbchecker.py +++ b/source4/scripting/python/samba/dbchecker.py @@ -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 -- 2.11.4.GIT