git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f26028
)
Workaround for KB932762
author
Volker Lendecke
<vl@samba.org>
Tue, 16 Jun 2009 09:14:29 +0000
(11:14 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 30 Jul 2009 07:22:14 +0000
(09:22 +0200)
(cherry picked from commit
a15c816ba5fd4dcedd68beb1fcb0540de325c1cb
)
source/smbd/lanman.c
patch
|
blob
|
history
diff --git
a/source/smbd/lanman.c
b/source/smbd/lanman.c
index abdd4e9a72dda275458f984b131e9c1115da69b5..a4c34b66d5c96f2c8d4c559f1f62174fe42a4b8b 100644
(file)
--- 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))) {