mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Avoid crash if fdopen failed in IPC
This commit is contained in:
parent
43bae9dd0b
commit
3be6d10525
@ -75,6 +75,8 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path)
|
|||||||
BOOST_FAIL("Error connecting to IPC socket: " << _path);
|
BOOST_FAIL("Error connecting to IPC socket: " << _path);
|
||||||
|
|
||||||
m_fp = fdopen(m_socket, "r");
|
m_fp = fdopen(m_socket, "r");
|
||||||
|
if (!m_fp)
|
||||||
|
BOOST_FAIL("Error opening IPC socket: " << _path);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user