]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: remove unused port in SigGroupHeadInitData
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 1 Feb 2024 09:50:15 +0000 (15:20 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 6 Feb 2024 09:15:50 +0000 (10:15 +0100)
port is not used and logically makes sense to not be in this struct as
this struct is already referenced by DetectPort itself as a part of
SigGroupHead.

src/detect.h

index 0fc5d21fb1d8ab68083bbeedad6dba4aea4303c9..e7cc0dfe935a512f7837e45c3cfb413186f505e0 100644 (file)
@@ -1434,9 +1434,6 @@ typedef struct SigGroupHeadInitData_ {
 
     /** Array with sig ptrs... size is sig_cnt * sizeof(Signature *) */
     Signature **match_array;
-
-    /* port ptr */
-    struct DetectPort_ *port;
 } SigGroupHeadInitData;
 
 /** \brief Container for matching data for a signature group */