Remove unnecessary uses of util::fmt()

This commit is contained in:
Tim Wojtulewicz 2022-05-16 13:49:04 -07:00
parent 8184073ef8
commit d73f9a78dd
3 changed files with 13 additions and 13 deletions

View file

@ -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;
}