diff options
Diffstat (limited to 'ipc/attachment_broker_privileged_win.cc')
-rw-r--r-- | ipc/attachment_broker_privileged_win.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ipc/attachment_broker_privileged_win.cc b/ipc/attachment_broker_privileged_win.cc index 3ce3ec5..0647012 100644 --- a/ipc/attachment_broker_privileged_win.cc +++ b/ipc/attachment_broker_privileged_win.cc @@ -86,8 +86,9 @@ void AttachmentBrokerPrivilegedWin::RouteDuplicatedHandle( // Another process is the destination. base::ProcessId dest = wire_format.destination_process; base::AutoLock auto_lock(*get_lock()); - Sender* sender = GetSenderWithProcessId(dest); - if (!sender) { + AttachmentBrokerPrivileged::EndpointRunnerPair pair = + GetSenderWithProcessId(dest); + if (!pair.first) { // Assuming that this message was not sent from a malicious process, the // channel endpoint that would have received this message will block // forever. @@ -98,7 +99,8 @@ void AttachmentBrokerPrivilegedWin::RouteDuplicatedHandle( } LogError(DESTINATION_FOUND); - sender->Send(new AttachmentBrokerMsg_WinHandleHasBeenDuplicated(wire_format)); + SendMessageToEndpoint( + pair, new AttachmentBrokerMsg_WinHandleHasBeenDuplicated(wire_format)); } AttachmentBrokerPrivilegedWin::HandleWireFormat |