From 0851d73f4dbb916b6e83d89cf2e2959c1159b7e0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 12 Jul 2009 17:06:05 +0200 Subject: s3:smbd: filter out SMB2 specific private query info levels for SMB1 metze --- source3/smbd/trans2.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 29abbfe3f5..96265861f2 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -4938,6 +4938,15 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd break; } + if ((info_level & 0xFF00) == 0xFF00) { + /* + * We use levels that start with 0xFF00 + * internally to represent SMB2 specific levels + */ + reply_nterror(req, NT_STATUS_INVALID_LEVEL); + return; + } + status = smbd_do_qfilepathinfo(conn, req, info_level, fsp, smb_fname, delete_pending, write_time_ts, -- cgit