summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-12-09 17:28:15 +0100
committerGünther Deschner <gd@samba.org>2008-12-09 17:41:26 +0100
commit920395442869d5d32f80e48d211047450f274aba (patch)
treeeea9002cc45d57ffbf372f4e8a4efcc1fdf03c20 /source3
parent3508a66fcd1ddf0f1743a3e2816651746a3b95de (diff)
downloadsamba-920395442869d5d32f80e48d211047450f274aba.tar.gz
samba-920395442869d5d32f80e48d211047450f274aba.tar.bz2
samba-920395442869d5d32f80e48d211047450f274aba.zip
s3-ldapsam: Fix Bug 5957: do not abort rename process on valid rename script.
Guenther (cherry picked from commit 26139344fd0fac4fdd2a6752628b252fbd9b7450) (cherry picked from commit 866efa63a26f75bbf17cd4bebf639594e2feafba)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index ddbb53a9b9..95e9a01ba3 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -2014,7 +2014,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,