mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r22340: Fix another segfault in idmap_ldap.c caused by setting the iterator
LDAPMessage * to NULL on each loop rotation.
This commit is contained in:
parent
1e1d22028a
commit
356dd0dd3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user