From 6d89116afe89e29d4e9bd0d69f7032a2b47f4c07 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 28 Jun 2010 10:58:08 +0200 Subject: s3-passdb: Make sure we don't call free on a garbage pointer. Found by clang-analyzer. --- source3/passdb/pdb_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c index 722bfacfb1..c5d8cc2c02 100644 --- a/source3/passdb/pdb_ads.c +++ b/source3/passdb/pdb_ads.c @@ -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; -- cgit