summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2009-12-04 12:31:53 -0500
committerJim McDonough <jmcd@samba.org>2009-12-04 12:43:27 -0500
commit265e4dfbb614398cffc5619a9800fc85f96e5438 (patch)
treec0b849a7e513d5dd87d7bc028779e7bdf568b582 /source3/libads
parent02fe8630395879ffa761d75c7d7b75fc7cda5e4c (diff)
downloadsamba-265e4dfbb614398cffc5619a9800fc85f96e5438.tar.gz
samba-265e4dfbb614398cffc5619a9800fc85f96e5438.tar.bz2
samba-265e4dfbb614398cffc5619a9800fc85f96e5438.zip
s3: bug #6967: Prevent glibc error on net ads join:
talloc()ed memory should not be SAFE_FREE()ed. Signed-off-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index bb8d43c96f..4005ed6600 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -2089,7 +2089,7 @@ ADS_STATUS ads_move_machine_acct(ADS_STRUCT *ads, const char *machine_name,
done:
ads_msgfree(ads, res);
SAFE_FREE(filter);
- SAFE_FREE(computer_dn);
+ TALLOC_FREE(computer_dn);
SAFE_FREE(computer_rdn);
if (!ADS_ERR_OK(rc)) {