diff options
author | Gerald Carter <jerry@samba.org> | 2006-07-25 20:11:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:21 -0500 |
commit | 1a0b57b5f523bdf787a8024303b661ea9004215f (patch) | |
tree | b307a6e2c5596132bf638717d6ff6e7ec8fbe30c /source3 | |
parent | 18feaab9d556c4bd41a19823b3982e2bc30a2055 (diff) | |
download | samba-1a0b57b5f523bdf787a8024303b661ea9004215f.tar.gz samba-1a0b57b5f523bdf787a8024303b661ea9004215f.tar.bz2 samba-1a0b57b5f523bdf787a8024303b661ea9004215f.zip |
r17242: BUG 3957: make sure to zero memory in the SRV hostlist in case there is not an A record for each SRV name
(This used to be commit 42608b8bb974e1bd88cf2105bf1774622c045458)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/dns.c b/source3/libads/dns.c index 558c7f75ba..903d19b753 100644 --- a/source3/libads/dns.c +++ b/source3/libads/dns.c @@ -343,7 +343,7 @@ static NTSTATUS ads_dns_lookup_srv( TALLOC_CTX *ctx, const char *name, struct dn DEBUG(4,("ads_dns_lookup_srv: %d records returned in the answer section.\n", answer_count)); - if ( (dcs = TALLOC_ARRAY(ctx, struct dns_rr_srv, answer_count)) == NULL ) { + if ( (dcs = TALLOC_ZERO_ARRAY(ctx, struct dns_rr_srv, answer_count)) == NULL ) { DEBUG(0,("ads_dns_lookup_srv: talloc() failure for %d char*'s\n", answer_count)); return NT_STATUS_NO_MEMORY; |