diff options
author | Jeremy Allison <jra@samba.org> | 1997-09-16 17:40:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-09-16 17:40:17 +0000 |
commit | 6449fc3b22284cea0aa186b0c6468696a1d8c1b4 (patch) | |
tree | 1d163f79ab86aab8cd0b10c24d46de6c22627978 /source3/namedbname.c | |
parent | 6ce9192fc23d1e9e3fba80f774ff8d56f7736ee1 (diff) | |
download | samba-6449fc3b22284cea0aa186b0c6468696a1d8c1b4.tar.gz samba-6449fc3b22284cea0aa186b0c6468696a1d8c1b4.tar.bz2 samba-6449fc3b22284cea0aa186b0c6468696a1d8c1b4.zip |
Fixing assumtions that malloced memory is zero filled - making
sure it is.
Jeremy (jallison@whistle.com)
(This used to be commit 59ee0d0c7ea166a3bf58ceb4c939217d6ff74498)
Diffstat (limited to 'source3/namedbname.c')
-rw-r--r-- | source3/namedbname.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/namedbname.c b/source3/namedbname.c index c91541cc81..a45a749f14 100644 --- a/source3/namedbname.c +++ b/source3/namedbname.c @@ -486,6 +486,8 @@ struct name_record *add_netbios_entry(struct subnet_record *d, return NULL; } + bzero((char *)n->ip_flgs, sizeof(*n->ip_flgs) * n->num_ips); + make_nmb_name(&n->name,name,type,scope); if ((n2 = find_name_search(&found_subnet, &n->name, search, new_only?ipzero:ip))) |