diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-07 20:32:58 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-09 05:24:29 +0800 |
commit | 3be6d105252d2153a6c05a4e788f615ed0921d6b (patch) | |
tree | c5a6f2c0e56d3f59fd0b3d71ad1b51aa5344e3ff /test | |
parent | 43bae9dd0bd924ad4a7277ea3c0a8f69d85f4870 (diff) | |
download | dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar.gz dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar.bz2 dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar.lz dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar.xz dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.tar.zst dexon-solidity-3be6d105252d2153a6c05a4e788f615ed0921d6b.zip |
Avoid crash if fdopen failed in IPC
Diffstat (limited to 'test')
-rw-r--r-- | test/RPCSession.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index f67696d9..43f10824 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -75,6 +75,8 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path) BOOST_FAIL("Error connecting to IPC socket: " << _path); m_fp = fdopen(m_socket, "r"); + if (!m_fp) + BOOST_FAIL("Error opening IPC socket: " << _path); #endif } |