Fix signed/unsigned comparison compiler warning

This commit is contained in:
Jon Siwek 2019-03-14 16:23:30 -07:00
parent 72fa3f16ad
commit a9771bc0eb
3 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,8 @@
2.6-158 | 2019-03-14 16:23:30 -0700
* Fix signed/unsigned comparison compiler warning (Jon Siwek, Corelight)
2.6-157 | 2019-03-14 16:18:13 +0000 2.6-157 | 2019-03-14 16:18:13 +0000
* GH-250: Add VXLAN decapsulation support (Henrik Lund Kramshoej; Jon Siwek, Corelight) * GH-250: Add VXLAN decapsulation support (Henrik Lund Kramshoej; Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.6-157 2.6-158

View file

@ -67,7 +67,7 @@ void UDP_Analyzer::DeliverPacket(int len, const u_char* data, bool is_orig,
constexpr auto eth_len = 14; constexpr auto eth_len = 14;
if ( validate_checksum && if ( validate_checksum &&
len > (sizeof(struct udphdr) + vxlan_len + eth_len) && len > ((int)sizeof(struct udphdr) + vxlan_len + eth_len) &&
(data[0] & 0x08) == 0x08 ) (data[0] & 0x08) == 0x08 )
{ {
auto& vxlan_ports = analyzer_mgr->GetVxlanPorts(); auto& vxlan_ports = analyzer_mgr->GetVxlanPorts();