summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-04-25 10:01:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:41 -0500
commit0d1c821700163b35be0aca166d4e4b22decd2891 (patch)
treee40a95b94e603da8192d1fd85d5594a00af26f08
parent0ecd719499c8c379fc5de53512a702e987679336 (diff)
downloadsamba-0d1c821700163b35be0aca166d4e4b22decd2891.tar.gz
samba-0d1c821700163b35be0aca166d4e4b22decd2891.tar.bz2
samba-0d1c821700163b35be0aca166d4e4b22decd2891.zip
r22511: Remove unused LDAPMessage.
Guenther (This used to be commit 31a193b02a08d2323d93659105c0fd5650b33419)
-rw-r--r--source3/nsswitch/winbindd_ads.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index f189123d7d..01174edf37 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -609,7 +609,6 @@ static NTSTATUS lookup_usergroups_memberof(struct winbindd_domain *domain,
{
ADS_STATUS rc;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
- LDAPMessage *res = NULL;
ADS_STRUCT *ads;
const char *attrs[] = {"memberOf", NULL};
size_t num_groups = 0;
@@ -693,8 +692,6 @@ static NTSTATUS lookup_usergroups_memberof(struct winbindd_domain *domain,
DEBUG(3,("ads lookup_usergroups (memberof) succeeded for dn=%s\n", user_dn));
done:
TALLOC_FREE(group_sids);
- if (res)
- ads_msgfree(ads, res);
return status;
}