diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-10 23:14:58 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-17 17:26:39 +0100 |
commit | aa362e8e68b317fcc4fecbe44f62750e8cee6d32 (patch) | |
tree | 88af9001f119b14e1b1042b013394b10d6dc7387 /source3/smbd | |
parent | f7adf534fdc8b0028028538d264e65d7dd45aa58 (diff) | |
download | samba-aa362e8e68b317fcc4fecbe44f62750e8cee6d32.tar.gz samba-aa362e8e68b317fcc4fecbe44f62750e8cee6d32.tar.bz2 samba-aa362e8e68b317fcc4fecbe44f62750e8cee6d32.zip |
s3: Protect against an invalid bcc in SMBsendtxt
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/message.c | 2 |
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; |