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:12:51 +0000 (10:12 +0200)
This addresses bug #6498.

source3/smbd/lanman.c

index 88ac096c82b546591771b80fa7ecf3bf8ca5a088..6fc72c27ea62e27a6967d296971967c8abac5b9a 100644 (file)
@@ -1215,6 +1215,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)) {