diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-29 06:15:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:12 -0500 |
commit | 817151c87ff8d3a9c22f8aeccf70a37a9cd1a331 (patch) | |
tree | b3e067b4df29680452ebf1aad78a338bada212bb /source3 | |
parent | 1c2ed583026631b94fc61a63e609eca2ad099bc1 (diff) | |
download | samba-817151c87ff8d3a9c22f8aeccf70a37a9cd1a331.tar.gz samba-817151c87ff8d3a9c22f8aeccf70a37a9cd1a331.tar.bz2 samba-817151c87ff8d3a9c22f8aeccf70a37a9cd1a331.zip |
r19943: Fix bug 4267 -- Thanks to David!
(This used to be commit 714971b34aad01cd855484d550c41bc0265ef051)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index f1c1710028..fbcb0e4616 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -1593,12 +1593,14 @@ static NTSTATUS ldapsam_modify_entry(struct pdb_methods *my_methods, } if (push_utf8_allocate(&utf8_dn, dn) == (size_t)-1) { + SAFE_FREE(utf8_password); return NT_STATUS_NO_MEMORY; } if ((ber = ber_alloc_t(LBER_USE_DER))==NULL) { DEBUG(0,("ber_alloc_t returns NULL\n")); SAFE_FREE(utf8_password); + SAFE_FREE(utf8_dn); return NT_STATUS_UNSUCCESSFUL; } |