diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-03-26 13:50:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-04-02 23:02:52 +0200 |
commit | c7a3b8ae21523f6af2c3e3fea1a0d3fcf9706d4c (patch) | |
tree | 404f5b315128677a20211a3e742893ce2a2e548c /source4/smb_server | |
parent | d72641ef769da6cba8fd8422586121c79ad3af42 (diff) | |
download | samba-c7a3b8ae21523f6af2c3e3fea1a0d3fcf9706d4c.tar.gz samba-c7a3b8ae21523f6af2c3e3fea1a0d3fcf9706d4c.tar.bz2 samba-c7a3b8ae21523f6af2c3e3fea1a0d3fcf9706d4c.zip |
s4:smb_server/smb2: add missing 'return;' statements in smb2srv_chain_reply()
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Apr 2 23:02:53 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb2/receive.c | 3 |
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); |