Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
0xA50C1A1 authored Dec 17, 2023
1 parent 4f08c2d commit 9594444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/hislip.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void ndpi_search_hislip(struct ndpi_detection_module_struct *ndpi_struct,

if ((packet->payload_packet_len >= 16) &&
(memcmp(packet->payload, "HS", 2) == 0) && ((packet->payload[2] - 26) < 0x65) &&
(ndpi_ntohll(get_u_int64_t(packet->payload, 8)) == (packet->payload_packet_len - 16)))
(ndpi_ntohll(get_u_int64_t(packet->payload, 8)) == (u_int64_t)(packet->payload_packet_len - 16)))
{
ndpi_int_hislip_add_connection(ndpi_struct, flow);
return;
Expand Down

0 comments on commit 9594444

Please sign in to comment.