diff options
author | Ege Çetin <64282645+egecetin@users.noreply.github.com> | 2023-01-03 22:11:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 20:11:24 +0100 |
commit | 663df7e475f756d78f605bd31d260ffb64bc7f5c (patch) | |
tree | e843f3df3eed8b856d86e5d64a91d84fb34745c7 /src/lib/protocols/ppstream.c | |
parent | 9c83f0f3c590a896a5edf185040cbfeee8eb10a6 (diff) |
Fix missing bracket at ppstream (#1843)
* add missing bracket
* Sync unit test results
Co-authored-by: Nardi Ivan <nardi.ivan@gmail.com>
Diffstat (limited to 'src/lib/protocols/ppstream.c')
-rw-r--r-- | src/lib/protocols/ppstream.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/protocols/ppstream.c b/src/lib/protocols/ppstream.c index a1c68e404..6625a4bc5 100644 --- a/src/lib/protocols/ppstream.c +++ b/src/lib/protocols/ppstream.c @@ -56,24 +56,25 @@ void ndpi_search_ppstream(struct ndpi_detection_module_struct || (packet->payload_packet_len == get_l16(packet->payload, 0)) || (packet->payload_packet_len >= 6 && packet->payload_packet_len - 6 == get_l16(packet->payload, 0)))) { /* check 43 and */ - if(packet->payload[2] == 0x43) { - if(packet->payload[5] == 0xff && - packet->payload[6] == 0x00 && - packet->payload[7] == 0x01 && - packet->payload[8] == 0x00 && - packet->payload[9] == 0x00 && - packet->payload[10] == 0x00 && - packet->payload[11] == 0x00 && - packet->payload[12] == 0x00 && - packet->payload[13] == 0x00 && - packet->payload[14] == 0x00) { + if(packet->payload[2] == 0x43) { + if(packet->payload[5] == 0xff && + packet->payload[6] == 0x00 && + packet->payload[7] == 0x01 && + packet->payload[8] == 0x00 && + packet->payload[9] == 0x00 && + packet->payload[10] == 0x00 && + packet->payload[11] == 0x00 && + packet->payload[12] == 0x00 && + packet->payload[13] == 0x00 && + packet->payload[14] == 0x00) { /* increase count pkt ppstream over udp */ flow->l4.udp.ppstream_stage++; ndpi_int_ppstream_add_connection(ndpi_struct, flow); return; - } + } + } /* check 44 */ else if(packet->payload[2] == 0x44) { /** b1 71 **/ @@ -190,7 +191,6 @@ void ndpi_search_ppstream(struct ndpi_detection_module_struct ndpi_int_ppstream_add_connection(ndpi_struct, flow); return; } - } } /* No port detection */ if(packet->payload_packet_len > 17) { |