diff options
author | Günther Deschner <gd@samba.org> | 2009-10-20 18:35:16 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-10-20 21:44:02 +0200 |
commit | d168d7fe3c7ec4b90cd526c4ea02e972ffac7835 (patch) | |
tree | c5ab8d7bd6d2beb63febd37660a7d91984e20149 /source3 | |
parent | 205284c9047444932dce7e181477421b75d8e1dd (diff) | |
download | samba-d168d7fe3c7ec4b90cd526c4ea02e972ffac7835.tar.gz samba-d168d7fe3c7ec4b90cd526c4ea02e972ffac7835.tar.bz2 samba-d168d7fe3c7ec4b90cd526c4ea02e972ffac7835.zip |
s3-pdb_ldap: fix crash bug in ldapsam_set_trusteddom_pw().
Thanks Volker for the hint.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 2c8d0518d5..c464a88f38 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -6013,8 +6013,6 @@ static bool ldapsam_set_trusteddom_pw(struct pdb_methods *methods, smbldap_make_mod(priv2ld(ldap_state), entry, &mods, "sambaClearTextPassword", pwd); - talloc_autofree_ldapmod(talloc_tos(), mods); - if (entry != NULL) { prev_pwd = smbldap_talloc_single_attribute(priv2ld(ldap_state), entry, "sambaClearTextPassword", talloc_tos()); @@ -6025,6 +6023,8 @@ static bool ldapsam_set_trusteddom_pw(struct pdb_methods *methods, } } + talloc_autofree_ldapmod(talloc_tos(), mods); + trusted_dn = trusteddom_dn(ldap_state, domain); if (trusted_dn == NULL) { return False; |