commit | ba6baaf687f0dcd5f493ad1fe9a4259911e1b494 | [log] [tgz] |
---|---|---|
author | Junxiao Shi <git@mail1.yoursunny.com> | Sat Aug 20 02:59:20 2016 +0000 |
committer | Junxiao Shi <git@mail1.yoursunny.com> | Sat Aug 20 02:59:20 2016 +0000 |
tree | f5b4de69763af2b3ca2fffd7c115a6394bae7193 | |
parent | f2515a772b4a1c401927a748371cb36b94022caf [diff] [blame] |
security: StreamSource throws upon istream::fail() refs #3741 Change-Id: I3742655ecfd93d47198c83b61664f8cea345d33e
diff --git a/src/security/transform/stream-source.cpp b/src/security/transform/stream-source.cpp index 5248646..539506e 100644 --- a/src/security/transform/stream-source.cpp +++ b/src/security/transform/stream-source.cpp
@@ -53,7 +53,7 @@ dataOffset += nBytesWritten; dataLen -= nBytesWritten; } - else if (m_is.bad()) { + else if (!m_is) { BOOST_THROW_EXCEPTION(Error(getIndex(), "Input stream in bad state")); } else if (m_is.good()) {