diff options
author | Matthieu Patou <mat@matws.net> | 2011-06-22 21:28:25 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-06-22 21:22:27 +0200 |
commit | a9e45923369e3171cb7f42284f52ce3c4c8b0a4b (patch) | |
tree | 5c1540f05f7a80439e516dadc413a42a397d46e6 /source4/scripting/python | |
parent | ef7940f7be7de238a693cfba649faf8b67b7da3a (diff) | |
download | samba-a9e45923369e3171cb7f42284f52ce3c4c8b0a4b.tar.gz samba-a9e45923369e3171cb7f42284f52ce3c4c8b0a4b.tar.bz2 samba-a9e45923369e3171cb7f42284f52ce3c4c8b0a4b.zip |
s4-dbcheck: fix uninitialized errstr in err_dn_target_mismatch
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Jun 22 21:22:27 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/dbchecker.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/dbchecker.py b/source4/scripting/python/samba/dbchecker.py index dd76cd878d..88fd0edf00 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 |