summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-05 21:12:33 +0200
committerGünther Deschner <gd@samba.org>2009-05-05 21:22:28 +0200
commitfee4c99be494b9679c414d6ba1938aa88adeacd3 (patch)
tree12b22a844baf40bdae948e0ffbbe725303800950 /source3
parent5b37df21f6af52d20ad3a25361b1d7faa51308d1 (diff)
downloadsamba-fee4c99be494b9679c414d6ba1938aa88adeacd3.tar.gz
samba-fee4c99be494b9679c414d6ba1938aa88adeacd3.tar.bz2
samba-fee4c99be494b9679c414d6ba1938aa88adeacd3.zip
s3-ldap: fix more callers of smbldap_dn_talloc() that were passing a NULL context.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c2
-rw-r--r--source3/passdb/pdb_nds.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 2ea6c44665..01d3da8786 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -3513,7 +3513,7 @@ static NTSTATUS ldapsam_modify_aliasmem(struct pdb_methods *methods,
return NT_STATUS_UNSUCCESSFUL;
}
- dn = smbldap_talloc_dn(NULL, ldap_state->smbldap_state->ldap_struct, entry);
+ dn = smbldap_talloc_dn(talloc_tos(), ldap_state->smbldap_state->ldap_struct, entry);
if (!dn) {
ldap_msgfree(result);
return NT_STATUS_UNSUCCESSFUL;
diff --git a/source3/passdb/pdb_nds.c b/source3/passdb/pdb_nds.c
index 08665e4617..1545b45d74 100644
--- a/source3/passdb/pdb_nds.c
+++ b/source3/passdb/pdb_nds.c
@@ -788,7 +788,7 @@ static NTSTATUS pdb_nds_update_login_attempts(struct pdb_methods *methods,
}
entry = ldap_first_entry(ldap_state->smbldap_state->ldap_struct, result);
- dn = smbldap_talloc_dn(NULL, ldap_state->smbldap_state->ldap_struct, entry);
+ dn = smbldap_talloc_dn(talloc_tos(), ldap_state->smbldap_state->ldap_struct, entry);
if (!dn) {
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}