mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fix IRC names command parsing
This commit is contained in:
parent
5ce7fe615a
commit
c2b18849f8
4 changed files with 21 additions and 3 deletions
|
@ -252,14 +252,15 @@ void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
|
|||
{
|
||||
vector<string> parts = SplitWords(params, ' ');
|
||||
|
||||
// Remove nick name.
|
||||
parts.erase(parts.begin());
|
||||
if ( parts.size() < 2 )
|
||||
if ( parts.size() < 3 )
|
||||
{
|
||||
Weird("irc_invalid_names_line");
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove nick name.
|
||||
parts.erase(parts.begin());
|
||||
|
||||
string type = parts[0];
|
||||
string channel = parts[1];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue