]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ntp: set unidirection transaction flag
authorJason Ish <jason.ish@oisf.net>
Mon, 14 Sep 2020 19:05:09 +0000 (13:05 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 7 Oct 2020 10:09:55 +0000 (12:09 +0200)
(cherry picked from commit 984d3c7f20560dae0adeae7fa09ba740f65d0868)

rust/src/ntp/ntp.rs

index b6cda16534e0ba3d659fb81809fc12f49d8c4c4a..8dfe62c6a93b93dc354dee30d654dec1592ccd13 100644 (file)
@@ -431,7 +431,7 @@ pub unsafe extern "C" fn rs_register_ntp_parser() {
         get_tx_iterator    : None,
         get_tx_detect_flags: None,
         set_tx_detect_flags: None,
-        flags              : 0,
+        flags              : crate::core::APP_LAYER_PARSER_OPT_UNIDIR_TXS,
     };
 
     let ip_proto_str = CString::new("udp").unwrap();