git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18feaab
)
r17242: BUG 3957: make sure to zero memory in the SRV hostlist in case there is not...
author
Gerald Carter
<jerry@samba.org>
Tue, 25 Jul 2006 20:11:03 +0000
(20:11 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:38:21 +0000
(11:38 -0500)
(This used to be commit
42608b8bb974e1bd88cf2105bf1774622c045458
)
source3/libads/dns.c
patch
|
blob
|
history
diff --git
a/source3/libads/dns.c
b/source3/libads/dns.c
index 558c7f75bad63ffe81999e565cbfb530670415ee..903d19b7530a338be50e0881f8a590cb187e515f 100644
(file)
--- 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;