summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-04-09 19:39:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:56 -0500
commit0f985dcb1978afd4b383116f01b3acf65c39ecd7 (patch)
tree532eecb4f9a5bbe41642f424997a9e7fab2c4f9c /source3/nmbd
parent42131b759dd732e5bb2fb2d8e8f8736c78855f51 (diff)
downloadsamba-0f985dcb1978afd4b383116f01b3acf65c39ecd7.tar.gz
samba-0f985dcb1978afd4b383116f01b3acf65c39ecd7.tar.bz2
samba-0f985dcb1978afd4b383116f01b3acf65c39ecd7.zip
r15012: Fix bug #2715. Fix suggested by ISHIKAWA Tomonori <toishika@fsi.co.jp>
No need to null terminate early, pull_ascii_fstring will do this. Jeremy. (This used to be commit b1bbe568313001f4b4e49382742e4b819c0a2b03)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_incomingdgrams.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_incomingdgrams.c b/source3/nmbd/nmbd_incomingdgrams.c
index 53b1947157..09eb7bfa86 100644
--- a/source3/nmbd/nmbd_incomingdgrams.c
+++ b/source3/nmbd/nmbd_incomingdgrams.c
@@ -108,7 +108,6 @@ void process_host_announce(struct subnet_record *subrec, struct packet_struct *p
START_PROFILE(host_announce);
pull_ascii_fstring(comment, buf+31);
- comment[42] = 0;
pull_ascii_nstring(announce_name, sizeof(announce_name), buf+5);
pull_ascii_nstring(source_name, sizeof(source_name), dgram->source_name.name);
@@ -267,7 +266,6 @@ void process_local_master_announce(struct subnet_record *subrec, struct packet_s
pull_ascii_nstring(server_name,sizeof(server_name),buf+5);
pull_ascii_fstring(comment, buf+31);
- comment[42] = 0;
pull_ascii_nstring(source_name, sizeof(source_name), dgram->source_name.name);
pull_ascii_nstring(work_name, sizeof(work_name), dgram->dest_name.name);