aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-01-15 12:05:21 +0000
committerVincent Richard <[email protected]>2013-01-15 12:05:21 +0000
commitb74955cee5669175aa6e54fb865f51acb071bb18 (patch)
tree654f93d3d96c2d459799ece5ccbaa047b62b72cf
parentRemoved unused includes for OpenSSL. (diff)
downloadvmime-b74955cee5669175aa6e54fb865f51acb071bb18.tar.gz
vmime-b74955cee5669175aa6e54fb865f51acb071bb18.zip
Better test for stream state.
-rw-r--r--src/relay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/relay.cpp b/src/relay.cpp
index dc1e1652..2262fa7e 100644
--- a/src/relay.cpp
+++ b/src/relay.cpp
@@ -100,7 +100,7 @@ void relay::parseImpl(const string& buffer, const string::size_type position,
{
Parts newPart = Part_None;
- if ((cont = ((iss >> word) != 0)))
+ if ((cont = !(iss >> word).fail()))
{
// A little hack for handling comments
if (inComment)