Permalink
Browse files

last fix did not do it - fix again

  • Loading branch information...
1 parent 9bd3b14 commit 9d1a859e28b78bfbf769689454b529ac7709dee4 @maekitalo committed Dec 13, 2013
Showing with 3 additions and 7 deletions.
  1. +3 −7 framework/common/messageheaderparser.cpp
@@ -194,14 +194,10 @@ namespace tnt
else if (ch == '\n')
{
log_debug("header " << fieldnamePtr << ": " << fieldbodyPtr);
- switch (header.onField(fieldnamePtr, fieldbodyPtr))
+ if (header.onField(fieldnamePtr, fieldbodyPtr) == FAIL)
{
- case OK:
- case END: return true;
- break;
- case FAIL: failedFlag = true;
- log_warn("invalid character " << chartoprint(ch) << " in fieldbody");
- break;
+ failedFlag = true;
+ log_warn("invalid character " << chartoprint(ch) << " in fieldbody");
}
*headerdataPtr = '\0';

0 comments on commit 9d1a859

Please sign in to comment.