1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3-passdb: Make sure we don't call free on a garbage pointer.

Found by clang-analyzer.
This commit is contained in:
Andreas Schneider 2010-06-28 10:58:08 +02:00
parent 06a1766315
commit 6d89116afe

View File

@ -1536,7 +1536,7 @@ static NTSTATUS pdb_ads_enum_alias_memberships(struct pdb_methods *m,
struct pdb_ads_state *state = talloc_get_type_abort(
m->private_data, struct pdb_ads_state);
const char *attrs[1] = { "objectSid" };
struct tldap_message **msg;
struct tldap_message **msg = NULL;
uint32_t *alias_rids = NULL;
size_t num_alias_rids = 0;
int i, rc, count;