diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-06-08 13:15:00 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-09 19:51:01 +0200 |
commit | 915892e0daddf69a0d8f6f7dd682d7e5b13f28b3 (patch) | |
tree | a0506407cea4abedc96b6fa18287b8d5aeb35d24 | |
parent | 6c44cc11b98c0165007af87cd98525404e573835 (diff) | |
download | samba-915892e0daddf69a0d8f6f7dd682d7e5b13f28b3.tar.gz samba-915892e0daddf69a0d8f6f7dd682d7e5b13f28b3.tar.bz2 samba-915892e0daddf69a0d8f6f7dd682d7e5b13f28b3.zip |
s3:smbd: for now ignore all non NBT Session Message requests for SMB2
metze
-rw-r--r-- | source3/smbd/smb2_server.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |