diff options
| author | liuchang <[email protected]> | 2023-04-03 02:51:54 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-04-03 02:51:54 +0000 |
| commit | f4d683426ce6b9572971d005cb5cc32a06ceef2c (patch) | |
| tree | bbc0b41f8a52f03b422eccab86c27a2a0d7896df /shaping/src/shaper_marsio.cpp | |
| parent | 2c4e75718d0c1a90754dea86ad7f4ba51372dc46 (diff) | |
fix a wrong judgementv1.1.4
Diffstat (limited to 'shaping/src/shaper_marsio.cpp')
| -rw-r--r-- | shaping/src/shaper_marsio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |
