From adc453eec6e61db7520bb3fe0dd8ad4a249486a6 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 25 Mar 2016 12:48:08 +0100 Subject: [PATCH] detect-port: improve comment about sgh pointer --- src/detect.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/detect.h b/src/detect.h index 663fbc2b0b..6abd893794 100644 --- a/src/detect.h +++ b/src/detect.h @@ -229,7 +229,11 @@ typedef struct DetectPort_ { uint8_t flags; /**< flags for this port */ - /* signatures that belong in this group */ + /* signatures that belong in this group + * + * If the PORT_SIGGROUPHEAD_COPY flag is set, we don't own this pointer + * (memory is freed elsewhere). + */ struct SigGroupHead_ *sh; struct DetectPort_ *prev;