diff options
author | Günther Deschner <gd@samba.org> | 2009-05-05 18:50:48 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-05 21:14:53 +0200 |
commit | 5b37df21f6af52d20ad3a25361b1d7faa51308d1 (patch) | |
tree | 9e7ae7101d6d772fee2109eb2313c44bea7d04f8 /source3 | |
parent | e7a8577df1e92982ff717a62280f86e3b0384d54 (diff) | |
download | samba-5b37df21f6af52d20ad3a25361b1d7faa51308d1.tar.gz samba-5b37df21f6af52d20ad3a25361b1d7faa51308d1.tar.bz2 samba-5b37df21f6af52d20ad3a25361b1d7faa51308d1.zip |
s3-ldapsam: Fix Bug #6313: ldapsam_update_sam_account() crashes while doing talloc_free on malloced memory.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index d548fe9ee9..2ea6c44665 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -1909,7 +1909,7 @@ static NTSTATUS ldapsam_update_sam_account(struct pdb_methods *my_methods, struc } 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_UNSUCCESSFUL; } |