summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-05-11 15:54:55 +0200
committerStefan Metzmacher <metze@samba.org>2009-05-11 15:59:46 +0200
commitd51bb8e4e6556db64907bfdd4f42a04e2dfddea8 (patch)
treeeb01aa5c343c56feeceb069302a327194d3f8225 /source4/smb_server
parent993bdd87b5c3c9f5f727d06b5b2b32964881e568 (diff)
downloadsamba-d51bb8e4e6556db64907bfdd4f42a04e2dfddea8.tar.gz
samba-d51bb8e4e6556db64907bfdd4f42a04e2dfddea8.tar.bz2
samba-d51bb8e4e6556db64907bfdd4f42a04e2dfddea8.zip
s4:smb_server: return after we have processed an invalid smb2 request
metze
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb2/receive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c
index 5a857e133f..4d513fd562 100644
--- a/source4/smb_server/smb2/receive.c
+++ b/source4/smb_server/smb2/receive.c
@@ -502,8 +502,10 @@ NTSTATUS smbsrv_recv_smb2_request(void *private_data, DATA_BLOB blob)
uint16_t opcode = SVAL(req->in.hdr, SMB2_HDR_OPCODE);
if (opcode == SMB2_OP_NEGPROT) {
smbsrv_terminate_connection(req->smb_conn, "Bad body size in SMB2 negprot");
+ return NT_STATUS_OK;
} else {
smb2srv_send_error(req, NT_STATUS_INVALID_PARAMETER);
+ return NT_STATUS_OK;
}
}