summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb2/receive.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c
index 5619313e90..3b54c977f2 100644
--- a/source4/smb_server/smb2/receive.c
+++ b/source4/smb_server/smb2/receive.c
@@ -210,8 +210,10 @@ static void smb2srv_chain_reply(struct smb2srv_request *p_req)
uint16_t opcode = SVAL(req->in.hdr, SMB2_HDR_OPCODE);
if (opcode == SMB2_OP_NEGPROT) {
smbsrv_terminate_connection(smb_conn, "Bad body size in SMB2 negprot");
+ return;
} else {
smb2srv_send_error(req, NT_STATUS_INVALID_PARAMETER);
+ return;
}
}
@@ -286,6 +288,7 @@ void smb2srv_send_reply(struct smb2srv_request *req)
status = packet_send(req->smb_conn->packet, blob);
if (!NT_STATUS_IS_OK(status)) {
smbsrv_terminate_connection(req->smb_conn, nt_errstr(status));
+ return;
}
if (req->chain_offset) {
smb2srv_chain_reply(req);