summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-10 23:14:58 +0100
committerVolker Lendecke <vl@samba.org>2010-01-17 17:26:39 +0100
commitaa362e8e68b317fcc4fecbe44f62750e8cee6d32 (patch)
tree88af9001f119b14e1b1042b013394b10d6dc7387
parentf7adf534fdc8b0028028538d264e65d7dd45aa58 (diff)
downloadsamba-aa362e8e68b317fcc4fecbe44f62750e8cee6d32.tar.gz
samba-aa362e8e68b317fcc4fecbe44f62750e8cee6d32.tar.bz2
samba-aa362e8e68b317fcc4fecbe44f62750e8cee6d32.zip
s3: Protect against an invalid bcc in SMBsendtxt
-rw-r--r--source3/smbd/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/message.c b/source3/smbd/message.c
index 82b3dc30a2..386aca1727 100644
--- 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;