]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
enip/detect: remove double registration of enip_command keyword
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 17 Oct 2024 08:25:42 +0000 (10:25 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 21 Oct 2024 18:19:26 +0000 (20:19 +0200)
As found with
./src/suricata --list-keywords | sort | uniq -c | awk '$1 > 1'

rust/src/enip/detect.rs

index 46361680a93e9f4dd842234a210a3437937e77d7..aee0afca6af5e37036e3212cee3e1304db114443 100644 (file)
@@ -1558,22 +1558,6 @@ pub unsafe extern "C" fn ScDetectEnipRegister() {
         true,
         true,
     );
-    let kw = SCSigTableElmt {
-        name: b"enip_command\0".as_ptr() as *const libc::c_char,
-        desc: b"rules for detecting EtherNet/IP command\0".as_ptr() as *const libc::c_char,
-        url: b"/rules/enip-keyword.html#enip_command\0".as_ptr() as *const libc::c_char,
-        AppLayerTxMatch: Some(command_match),
-        Setup: command_setup,
-        Free: Some(command_free),
-        flags: 0,
-    };
-    G_ENIP_COMMAND_KW_ID = DetectHelperKeywordRegister(&kw);
-    G_ENIP_COMMAND_BUFFER_ID = DetectHelperBufferRegister(
-        b"enip.command\0".as_ptr() as *const libc::c_char,
-        ALPROTO_ENIP,
-        true,
-        true,
-    );
     let kw = SCSigTableElmt {
         name: b"enip.cip_status\0".as_ptr() as *const libc::c_char,
         desc: b"rules for detecting EtherNet/IP cip_status\0".as_ptr() as *const libc::c_char,