s3:smbd: filter out SMB2 specific private query info levels for SMB1
authorStefan Metzmacher <metze@samba.org>
Sun, 12 Jul 2009 15:06:05 +0000 (17:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 12 Jul 2009 15:07:34 +0000 (17:07 +0200)
metze

source3/smbd/trans2.c

index 29abbfe3f5d62ec83d2d7702362865c1fa45f66f..96265861f25a1097f5cfef50c43f7d8090dfbbc7 100644 (file)
@@ -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,