]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-port: improve comment about sgh pointer
authorVictor Julien <victor@inliniac.net>
Fri, 25 Mar 2016 11:48:08 +0000 (12:48 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Apr 2016 07:37:43 +0000 (09:37 +0200)
src/detect.h

index 663fbc2b0b31585997059a4767a96d325d6c0871..6abd89379447d1ea1331b7f3f808d6a22781bf2a 100644 (file)
@@ -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;