diff --git a/src/POP3.cc b/src/POP3.cc index 4f1f2a5ea7..5d38b4c3d1 100644 --- a/src/POP3.cc +++ b/src/POP3.cc @@ -576,9 +576,11 @@ void POP3_Analyzer::ProcessReply(int length, const char* line) if ( multiLine == true ) { bool terminator = - length > 1 && line[0] == '.' && - (line[1] == '\n' || - (length > 2 && line[1] == '\r' && line[2] == '\n')); + line[0] == '.' && + (length == 1 || + (length > 1 && + (line[1] == '\n' || + (length > 2 && line[1] == '\r' && line[2] == '\n')))); if ( terminator ) {