summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-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;