mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Remove unnecessary uses of util::fmt()
This commit is contained in:
parent
8184073ef8
commit
d73f9a78dd
3 changed files with 13 additions and 13 deletions
|
@ -97,13 +97,13 @@ refine connection SSL_Conn += {
|
|||
// copy data from fragment to buffer
|
||||
if ( ${rec.data}.length() != flength )
|
||||
{
|
||||
zeek_analyzer()->AnalyzerViolation(zeek::util::fmt("DTLS handshake record length does not match packet length"));
|
||||
zeek_analyzer()->AnalyzerViolation("DTLS handshake record length does not match packet length");
|
||||
return true;
|
||||
}
|
||||
|
||||
if ( foffset + flength > length )
|
||||
{
|
||||
zeek_analyzer()->AnalyzerViolation(zeek::util::fmt("DTLS handshake fragment trying to write past end of buffer"));
|
||||
zeek_analyzer()->AnalyzerViolation("DTLS handshake fragment trying to write past end of buffer");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ refine connection SSL_Conn += {
|
|||
uint64 total_length = i->message_last_sequence - i->message_first_sequence;
|
||||
if ( total_length > 30 )
|
||||
{
|
||||
zeek_analyzer()->AnalyzerViolation(zeek::util::fmt("DTLS Message fragmented over more than 30 pieces. Cannot reassemble."));
|
||||
zeek_analyzer()->AnalyzerViolation("DTLS Message fragmented over more than 30 pieces. Cannot reassemble.");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue