s3/lanman: Workaround for KB932762.
authorVolker Lendecke <vl@samba.org>
Tue, 16 Jun 2009 09:51:11 +0000 (11:51 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 27 Jun 2009 08:24:27 +0000 (10:24 +0200)
This addresses bug #6498.
(cherry picked from commit a702dea5a86f22e0b7857b67447152a06b3bbea2)
(cherry picked from commit aa769edfcef6937927201f765509c10b60764817)

source/smbd/lanman.c

index 6fa4f9698d9611d13a070ce01bc9e5f4786f1c80..936a4fdb88252a757353c7d5925d53eaa9431272 100644 (file)
@@ -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)) {