summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-16 11:51:11 +0200
committerKarolin Seeger <kseeger@samba.org>2009-08-10 18:00:40 +0200
commit59bae47f7953651cf4b46b23d06caf654b306153 (patch)
tree3bb9dd6b1bc4fee8b603043ee6a7a73d634ce923
parent9491844b980e264dc19daaa378ddddfe4daaaacf (diff)
downloadsamba-59bae47f7953651cf4b46b23d06caf654b306153.tar.gz
s3/lanman: Workaround for KB932762.
This addresses bug #6498. (cherry picked from commit a702dea5a86f22e0b7857b67447152a06b3bbea2) (cherry picked from commit aa769edfcef6937927201f765509c10b60764817) (cherry picked from commit 471f905f788209d0e76ca2d327d30f830ce4648c)
-rw-r--r--source/smbd/lanman.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c
index 6fa4f9698d9..936a4fdb882 100644
--- a/source/smbd/lanman.c
+++ b/source/smbd/lanman.c
@@ -1217,6 +1217,7 @@ static int get_server_info(uint32 servertype,
continue;
}
fstrcpy(s->comment, p);
+ string_truncate(s->comment, MAX_SERVER_STRING_LENGTH);
s->domain[0] = '\0';
if (!next_token_talloc(frame,&ptr,&p, NULL)) {