]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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:23:28 +0000 (10:23 +0200)
This addresses bug #6498.
(cherry picked from commit a702dea5a86f22e0b7857b67447152a06b3bbea2)

source/smbd/lanman.c

index fe1d766b9d38cc47607abdcd3fbd8ceffc338549..5fb05de9f19d10e14aec889c7030b26f4392a215 100644 (file)
@@ -1214,6 +1214,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)) {