summaryrefslogtreecommitdiffstats
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-04-11 01:05:21 +0200
committerJeremy Allison <jra@samba.org>2014-04-11 21:41:08 +0200
commit95df39b99f17810cb230c4a6a0d0952919cd0b81 (patch)
treef2bfdc65c1c760a79a7024685b34f6f58cf5ac2b /source3/smbd
parent796874912d9935e202b8c767ca33d557dce9c43e (diff)
downloadsamba-95df39b99f17810cb230c4a6a0d0952919cd0b81.tar.gz
samba-95df39b99f17810cb230c4a6a0d0952919cd0b81.tar.xz
samba-95df39b99f17810cb230c4a6a0d0952919cd0b81.zip
s3:smb2_server: make sure we don't try recvfile for special NBT messages
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 13626f3cb55..4949fd2accb 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -3271,6 +3271,9 @@ again:
/*
* Now we analyze the NBT header
*/
+ if (state->hdr.nbt[0] != 0x00) {
+ state->min_recv_size = 0;
+ }
state->pktlen = smb2_len(state->hdr.nbt);
if (state->pktlen == 0) {
goto got_full;