diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-05-11 15:54:55 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-05-11 15:59:46 +0200 |
commit | d51bb8e4e6556db64907bfdd4f42a04e2dfddea8 (patch) | |
tree | eb01aa5c343c56feeceb069302a327194d3f8225 /source4/smb_server | |
parent | 993bdd87b5c3c9f5f727d06b5b2b32964881e568 (diff) | |
download | samba-d51bb8e4e6556db64907bfdd4f42a04e2dfddea8.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c index 5a857e133f0..4d513fd5623 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; } } |