summaryrefslogtreecommitdiff
path: root/source3/nsswitch/idmap_ldap.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-04-18 16:45:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:27 -0500
commitb066668b74768d9ed547f16bf7b6ba6aea5df20a (patch)
tree37fbbb195d176d05e00ea99c5d078582a5d7b2d1 /source3/nsswitch/idmap_ldap.c
parent2ed59671ce881695023dc23ab1b491e4102aa88f (diff)
downloadsamba-b066668b74768d9ed547f16bf7b6ba6aea5df20a.tar.gz
samba-b066668b74768d9ed547f16bf7b6ba6aea5df20a.tar.bz2
samba-b066668b74768d9ed547f16bf7b6ba6aea5df20a.zip
r22340: Fix another segfault in idmap_ldap.c caused by setting the iterator
LDAPMessage * to NULL on each loop rotation. (This used to be commit 356dd0dd3a36a8f6061ba60f556e889de7c28140)
Diffstat (limited to 'source3/nsswitch/idmap_ldap.c')
-rw-r--r--source3/nsswitch/idmap_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/idmap_ldap.c b/source3/nsswitch/idmap_ldap.c
index 15f88d28c7..d6261f407b 100644
--- a/source3/nsswitch/idmap_ldap.c
+++ b/source3/nsswitch/idmap_ldap.c
@@ -1028,6 +1028,7 @@ static struct id_map *find_map_by_sid(struct id_map **maps, DOM_SID *sid)
static NTSTATUS idmap_ldap_sids_to_unixids(struct idmap_domain *dom, struct id_map **ids)
{
+ LDAPMessage *entry = NULL;
NTSTATUS ret;
TALLOC_CTX *memctx;
struct idmap_ldap_context *ctx;
@@ -1108,7 +1109,6 @@ again:
}
for (i = 0; i < count; i++) {
- LDAPMessage *entry = NULL;
char *sidstr = NULL;
char *tmp = NULL;
enum id_type type;