mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Only set connection history if strings differ
This commit is contained in:
parent
0aafc8ae6c
commit
1f8d406658
3 changed files with 12 additions and 2 deletions
|
@ -115,6 +115,11 @@ bool String::operator==(std::string_view s) const
|
|||
return (memcmp(b, s.data(), n) == 0);
|
||||
}
|
||||
|
||||
bool String::operator!=(std::string_view s) const
|
||||
{
|
||||
return ! (*this == s);
|
||||
}
|
||||
|
||||
void String::Adopt(byte_vec bytes, int len)
|
||||
{
|
||||
Reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue