Skip to content

Commit

Permalink
WAB-9963: [RDPDR] Ignore I/O request to unknown device.
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaopengZHOU committed Apr 9, 2024
1 parent 45304de commit cd0217d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/mod/rdp/channels/rdpdr_file_system_drive_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1837,18 +1837,11 @@ void FileSystemDriveManager::process_device_IO_request(
if (drive_iter == this->managed_drives.end()) {
LOG(LOG_WARNING,
"FileSystemDriveManager::process_device_IO_request: "
"Unknown device? Send unsuccessful response. DeviceId=%u "
"Unknown device? Ignore this I/O request. DeviceId=%u "
"MajorFunction=%u MinorFunction=%u",
DeviceId, device_io_request.MajorFunction(),
device_io_request.MinorFunction());

ManagedFileSystemObject::SendClientDriveIoUnsuccessfulResponse(
device_io_request,
"FileSystemDriveManager::process_device_IO_request",
to_server_sender,
this->async_task_container,
verbose);

return;
}

Expand Down

0 comments on commit cd0217d

Please sign in to comment.