s3-ldapsam: Fix Bug 5957: do not abort rename process on valid rename script.
authorGünther Deschner <gd@samba.org>
Tue, 9 Dec 2008 16:28:15 +0000 (17:28 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 9 Dec 2008 16:30:30 +0000 (17:30 +0100)
Guenther

source/passdb/pdb_ldap.c

index 636682d4905ccc477f369c383640e1394b55d577..0d54fe02cc74d52a62259257b5dd883f39ed9139 100644 (file)
@@ -2010,7 +2010,7 @@ static NTSTATUS ldapsam_rename_sam_account(struct pdb_methods *my_methods,
                                        newname_lower,
                                        true,
                                        true);
-       if (rename_script) {
+       if (!rename_script) {
                return NT_STATUS_NO_MEMORY;
        }
        rename_script = realloc_string_sub2(rename_script,