summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-27 00:27:44 +0000
committerJeremy Allison <jra@samba.org>1998-06-27 00:27:44 +0000
commit1fcb094ba04f01be1261ac92198c25b21b0d5ad5 (patch)
tree9ff0299058cde168c0f7e2a25b0160a59dd38b0e /source/libsmb
parent6e995802fecb4474003db55a69c9e1663737aade (diff)
downloadsamba-1fcb094ba04f01be1261ac92198c25b21b0d5ad5.tar.gz
samba-1fcb094ba04f01be1261ac92198c25b21b0d5ad5.tar.xz
samba-1fcb094ba04f01be1261ac92198c25b21b0d5ad5.zip
nisppass.c: Fixed incorrect parameter usage.
nmbd_become_lmb.c: Add 'force_new_election' parameter to some functions. This allows the start of the election to be done *after* the demotion from local master browser is done. Also changed code so release of 1d name is done immediately to allow other local master to gain it. nmbd_elections.c: Ensured no elections are run until we have registered the WORKGROUP<1e> name that we must listen on to participate in elections. nmbd_incomingdgrams.c: Use force_new_election code. nmbd_namelistdb.c: Make update_name_in_namelist static. nmbd_subnetdb.c: Fix bug in comparison function. We cannot use memcmp as structure packing may make this fail. nmbd_packets.c: Ensure that we only send one release packet when sending a broadcast packet. nmbd_workgroupdb.c: Ensure we put the correct value in the ElectionCriterion field. nmblib.c: Ensure make_nmb_name zero's the struct nmb_name. Jeremy.
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/nmblib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c
index f59371d5593..89b0fa7a927 100644
--- a/source/libsmb/nmblib.c
+++ b/source/libsmb/nmblib.c
@@ -762,6 +762,7 @@ static int build_dgram(char *buf,struct packet_struct *p)
******************************************************************/
void make_nmb_name(struct nmb_name *n,char *name,int type,char *this_scope)
{
+ memset((char *)n, '\0', sizeof(struct nmb_name));
StrnCpy(n->name,name,15);
strupper(n->name);
n->name_type = (unsigned int)type & 0xFF;