s3/lanman: Workaround for KB932762.
[ira/wip.git] / 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)) {