mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Remove unnecessary #includes in analyzer/packet analyzer/file analyzer headers
This commit is contained in:
parent
896e41c794
commit
456c1fa42c
72 changed files with 41 additions and 91 deletions
|
@ -792,7 +792,7 @@ bool DNS_Interpreter::ParseRR_EDNS(detail::DNS_MsgInfo* msg, const u_char*& data
|
|||
|
||||
void DNS_Interpreter::ExtractOctets(const u_char*& data, int& len, String** p) {
|
||||
uint16_t dlen = ExtractShort(data, len);
|
||||
dlen = min(len, static_cast<int>(dlen));
|
||||
dlen = std::min(len, static_cast<int>(dlen));
|
||||
|
||||
if ( p )
|
||||
*p = new String(data, dlen, false);
|
||||
|
@ -802,8 +802,8 @@ void DNS_Interpreter::ExtractOctets(const u_char*& data, int& len, String** p) {
|
|||
}
|
||||
|
||||
String* DNS_Interpreter::ExtractStream(const u_char*& data, int& len, int l) {
|
||||
l = max(l, 0);
|
||||
int dlen = min(len, l); // Len in bytes of the algorithm use
|
||||
l = std::max(l, 0);
|
||||
int dlen = std::min(len, l); // Len in bytes of the algorithm use
|
||||
auto rval = new String(data, dlen, false);
|
||||
|
||||
data += dlen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue