From f4d683426ce6b9572971d005cb5cc32a06ceef2c Mon Sep 17 00:00:00 2001 From: liuchang Date: Mon, 3 Apr 2023 02:51:54 +0000 Subject: fix a wrong judgement --- shaping/src/shaper_marsio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaping/src/shaper_marsio.cpp b/shaping/src/shaper_marsio.cpp index cbc5d09..e40a507 100644 --- a/shaping/src/shaper_marsio.cpp +++ b/shaping/src/shaper_marsio.cpp @@ -160,7 +160,7 @@ int shaper_marsio_pkt_metadata_get(marsio_buff_t *rx_buff, struct metadata *meta raw_packet_parser_init(raw_parser, meta->session_id, LAYER_TYPE_ALL, 8); payload = raw_packet_parser_parse(raw_parser, (const void *)meta->raw_data, meta->raw_len); if (is_ctrl_buff) { - if ((char *)payload - (char *)&meta->raw_data != meta->l7_offset) { + if ((char *)payload - (char *)meta->raw_data != meta->l7_offset) { LOG_ERROR("%s: incorrect dataoffset in the control zone of session %lu", LOG_TAG_SHAPING, meta->session_id); } } -- cgit v1.2.3