diff options
author | headshog <124502670+headshog@users.noreply.github.com> | 2023-07-05 15:29:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 14:29:44 +0200 |
commit | d51f8929e0b2c57e0c5a4b89c2f25a6ca330728d (patch) | |
tree | 33345eaeb3ce39050a2ba22a4e5820d97d706b0a | |
parent | 2e5004ddb220b76cdeaf461e3522f781cea91cfe (diff) |
fixed numeric truncation error in rtcp.c (#2033)
-rw-r--r-- | src/lib/protocols/rtcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/rtcp.c b/src/lib/protocols/rtcp.c index daa6c986f..9e22ad452 100644 --- a/src/lib/protocols/rtcp.c +++ b/src/lib/protocols/rtcp.c @@ -42,7 +42,7 @@ static void ndpi_search_rtcp(struct ndpi_detection_module_struct *ndpi_struct, NDPI_EXCLUDE_PROTO(ndpi_struct, flow); } else if(packet->udp != NULL) { /* Let's check first the RTCP packet length */ - u_int16_t len, offset = 0, rtcp_section_len; + u_int32_t len, offset = 0, rtcp_section_len; while(offset + 3 < packet->payload_packet_len) { len = packet->payload[2+offset] * 256 + packet->payload[2+offset+1]; |