summaryrefslogtreecommitdiff
path: root/source3/libads/ldap.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-17 15:00:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:11 -0500
commit846e939260c30d902952d95413d9cc3d06a82173 (patch)
tree9f9f446e59988c568506c91e1bc082eea939e531 /source3/libads/ldap.c
parent9c160dd9a7c88afaac7570581062060271b6f757 (diff)
downloadsamba-846e939260c30d902952d95413d9cc3d06a82173.tar.gz
samba-846e939260c30d902952d95413d9cc3d06a82173.tar.bz2
samba-846e939260c30d902952d95413d9cc3d06a82173.zip
r17089: Fix a possible null dereference and some memleaks.
Jerry, please check. Thanks, Volker (This used to be commit b87c4952216b6302b0e1f22689b5a36b6aa65349)
Diffstat (limited to 'source3/libads/ldap.c')
-rw-r--r--source3/libads/ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index a8ee770582..5d972b35fc 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -134,6 +134,7 @@ BOOL ads_try_connect(ADS_STRUCT *ads, const char *server )
if ( !ads_cldap_netlogon( srv, ads->server.realm, &cldap_reply ) ) {
DEBUG(3,("ads_try_connect: CLDAP request %s failed.\n", srv));
+ SAFE_FREE( srv );
return False;
}