summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-28 10:58:08 +0200
committerAndreas Schneider <asn@samba.org>2010-06-28 12:56:13 +0200
commit6d89116afe89e29d4e9bd0d69f7032a2b47f4c07 (patch)
tree53c0329f336a28cc522f2985c9c53aec594a9587 /source3
parent06a1766315e775062ba5277be0f739e735cc3547 (diff)
downloadsamba-6d89116afe89e29d4e9bd0d69f7032a2b47f4c07.tar.gz
samba-6d89116afe89e29d4e9bd0d69f7032a2b47f4c07.tar.bz2
samba-6d89116afe89e29d4e9bd0d69f7032a2b47f4c07.zip
s3-passdb: Make sure we don't call free on a garbage pointer.
Found by clang-analyzer.
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ads.c2
1 files changed, 1 insertions, 1 deletions
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;