From: Yehor Velykozhon -X (yvelykoz - SOFTSERVE INC at Cisco) Date: Fri, 15 Mar 2024 16:40:34 +0000 (+0000) Subject: Pull request #4245: detection: update debug logs to avoid use invalid packet X-Git-Tag: 3.1.83.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=157d53961eb184c7c3165e786135418fbfe8b6c8;p=thirdparty%2Fsnort3.git Pull request #4245: detection: update debug logs to avoid use invalid packet Merge in SNORT/snort3 from ~YVELYKOZ/snort3:sse_debug_fix to master Squashed commit of the following: commit 2146df95cc4fdeef0bfc0ca3d5aea5559ad7a706 Author: Yehor Velykozhon Date: Fri Mar 15 17:02:31 2024 +0200 detection: use correct packet in trace logs --- diff --git a/src/detection/detection_continuation.h b/src/detection/detection_continuation.h index 1df6d2687..60d9ee9e7 100644 --- a/src/detection/detection_continuation.h +++ b/src/detection/detection_continuation.h @@ -224,13 +224,13 @@ bool Continuation::State::eval(snort::Packet& p) if (cursor.awaiting_data(true) or cursor.size() == 0) { waypoint = cursor.get_next_pos(); - debug_logf(detection_trace, TRACE_CONT, data.p, + debug_logf(detection_trace, TRACE_CONT, &p, "Continuation postponed, %u bytes to go\n", waypoint); return false; } assert(cursor.get_name()); - debug_logf(detection_trace, TRACE_CONT, data.p, + debug_logf(detection_trace, TRACE_CONT, &p, "Cursor reached the position, evaluating sub-tree with " "current buffer '%s'\n", cursor.get_name());