diff options
Diffstat (limited to 'source3/libsmb/nmblib.c')
-rw-r--r-- | source3/libsmb/nmblib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index f59371d559..89b0fa7a92 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/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; |