git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7adf53
)
s3: Protect against an invalid bcc in SMBsendtxt
author
Volker Lendecke
<vl@samba.org>
Tue, 10 Nov 2009 22:14:58 +0000
(23:14 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 17 Jan 2010 16:26:39 +0000
(17:26 +0100)
source3/smbd/message.c
patch
|
blob
|
history
diff --git
a/source3/smbd/message.c
b/source3/smbd/message.c
index 82b3dc30a223eb2c7ebe9bd02ce81b6a4cc57e84..386aca1727cd9932f82d879b68d444f100c5bc37 100644
(file)
--- a/
source3/smbd/message.c
+++ b/
source3/smbd/message.c
@@
-245,7
+245,7
@@
void reply_sendtxt(struct smb_request *req)
return;
}
- if (
smbd_msg_state == NULL
) {
+ if (
(smbd_msg_state == NULL) || (req->buflen < 3)
) {
reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
END_PROFILE(SMBsendtxt);
return;