diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-07-12 17:06:05 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-07-12 17:07:34 +0200 |
commit | 0851d73f4dbb916b6e83d89cf2e2959c1159b7e0 (patch) | |
tree | 2591e31f581e89435cf1731b7078467e1119099e | |
parent | 0ba532e1b2dedea3c07fa55631fac0d9a5032fcf (diff) | |
download | samba-0851d73f4dbb916b6e83d89cf2e2959c1159b7e0.tar.gz samba-0851d73f4dbb916b6e83d89cf2e2959c1159b7e0.tar.bz2 samba-0851d73f4dbb916b6e83d89cf2e2959c1159b7e0.zip |
s3:smbd: filter out SMB2 specific private query info levels for SMB1
metze
-rw-r--r-- | source3/smbd/trans2.c | 9 |
1 files changed, 9 insertions, 0 deletions
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, |