Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Unified Diff: ipc/ipc_channel_win.cc

Issue 10199005: Merge 130346 - Require IPC hello for a verified channel (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_win.cc
===================================================================
--- ipc/ipc_channel_win.cc (revision 133533)
+++ ipc/ipc_channel_win.cc (working copy)
@@ -142,7 +142,9 @@
}
bool Channel::ChannelImpl::WillDispatchInputMessage(Message* msg) {
- // We don't need to do anything here.
+ // Make sure we get a hello when client validation is required.
+ if (validate_client_)
+ return IsHelloMessage(*msg);
return true;
}
@@ -157,6 +159,8 @@
listener()->OnChannelError();
return;
}
+ // validation completed.
+ validate_client_ = false;
listener()->OnChannelConnected(claimed_pid);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698