mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix for major bug in POP3 analyzer, which didn't recognize '.'
terminators in multi-line replies if the terminator was bare (no newline). This caused it to ignore the rest of the session that it's analyzing. Patch from #444 by Vern.
This commit is contained in:
parent
e2c194c990
commit
d1db768624
1 changed files with 5 additions and 3 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue