diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-16 11:14:29 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-06-27 10:32:56 +0200 |
commit | a15c816ba5fd4dcedd68beb1fcb0540de325c1cb (patch) | |
tree | 1b108411f70cd1d4b8cd835d39e2205cfb59cb2b | |
parent | ccded3263ad1135cc707e24cc78d0fd95e2e88d3 (diff) | |
download | samba-a15c816ba5fd4dcedd68beb1fcb0540de325c1cb.tar.gz |
Workaround for KB932762
-rw-r--r-- | source/smbd/lanman.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c index abdd4e9a72d..a4c34b66d5c 100644 --- a/source/smbd/lanman.c +++ b/source/smbd/lanman.c @@ -1137,7 +1137,9 @@ static int get_server_info(uint32 servertype, if (!next_token(&ptr,stype, NULL, sizeof(stype))) { continue; } - if (!next_token(&ptr,s->comment, NULL, sizeof(s->comment))) { + if (!next_token(&ptr,s->comment, NULL, + MIN(sizeof(s->comment), + MAX_SERVER_STRING_LENGTH))) { continue; } if (!next_token(&ptr,s->domain, NULL, sizeof(s->domain))) { |