mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 835038 - Ensure IPC TCP sockets always have permission checks applied. r=jduell
This commit is contained in:
parent
e3c696fc3e
commit
9c972f6ba2
@ -268,6 +268,11 @@ NeckoParent::AllocPTCPSocket(const nsString& aHost,
|
||||
const nsString& aBinaryType,
|
||||
PBrowserParent* aBrowser)
|
||||
{
|
||||
if (UsingNeckoIPCSecurity() && !aBrowser) {
|
||||
printf_stderr("NeckoParent::AllocPTCPSocket: FATAL error: no browser present \
|
||||
KILLING CHILD PROCESS\n");
|
||||
return nullptr;
|
||||
}
|
||||
TCPSocketParent* p = new TCPSocketParent();
|
||||
p->AddRef();
|
||||
return p;
|
||||
|
Loading…
Reference in New Issue
Block a user