diff options
-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 82b3dc30a22..386aca1727c 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; |