From: Volker Lendecke Date: Tue, 16 Jun 2009 09:51:11 +0000 (+0200) Subject: s3/lanman: Workaround for KB932762. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=471f905f788209d0e76ca2d327d30f830ce4648c;p=thirdparty%2Fsamba.git s3/lanman: Workaround for KB932762. This addresses bug #6498. (cherry picked from commit a702dea5a86f22e0b7857b67447152a06b3bbea2) (cherry picked from commit aa769edfcef6937927201f765509c10b60764817) --- 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)) {