From 915892e0daddf69a0d8f6f7dd682d7e5b13f28b3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 8 Jun 2009 13:15:00 +0200 Subject: s3:smbd: for now ignore all non NBT Session Message requests for SMB2 metze --- source3/smbd/smb2_server.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3') diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 42e230785c..dee06b37af 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -1107,6 +1107,14 @@ static void smbd_smb2_request_incoming(struct tevent_req *subreq) return; } + if (req->in.nbt_hdr[0] != 0x00) { + DEBUG(1,("smbd_smb2_request_incoming: ignore NBT[0x%02X] msg\n", + req->in.nbt_hdr[0])); + talloc_free(req->mem_pool); + req = NULL; + goto next; + } + /* TODO: validate the incoming request */ req->current_idx = 1; @@ -1125,6 +1133,7 @@ static void smbd_smb2_request_incoming(struct tevent_req *subreq) return; } +next: /* ask for the next request (this constructs the main loop) */ subreq = smbd_smb2_request_read_send(conn,conn->smb2.event_ctx, conn); if (subreq == NULL) { -- cgit