summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-25 23:14:24 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-29 00:14:51 +0200
commit925994e42eba5b72ce605b68e8980adc1b5ecd83 (patch)
treee8a3d914041c1236bd862565c41fbc5b366045f4
parent0b8eac9b79197c4659a5738f1b9399b3c88f2f8d (diff)
downloadsamba-925994e42eba5b72ce605b68e8980adc1b5ecd83.tar.gz
samba-925994e42eba5b72ce605b68e8980adc1b5ecd83.tar.bz2
samba-925994e42eba5b72ce605b68e8980adc1b5ecd83.zip
s3:smb2_server: call smbd_smb2_request_validate() also in smbd_smb2_first_negprot()
We need to consume message_id 0, for SMB1 negprot starts. metze
-rw-r--r--source3/smbd/smb2_server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 0afe775354..e2db9b0f07 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2759,6 +2759,12 @@ void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
return;
}
+ status = smbd_smb2_request_validate(req);
+ if (!NT_STATUS_IS_OK(status)) {
+ smbd_server_connection_terminate(sconn, nt_errstr(status));
+ return;
+ }
+
status = smbd_smb2_request_setup_out(req);
if (!NT_STATUS_IS_OK(status)) {
smbd_server_connection_terminate(sconn, nt_errstr(status));