]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
krb: add TX orientation
authorEric Leblond <el@stamus-networks.com>
Mon, 23 Jan 2023 19:04:26 +0000 (20:04 +0100)
committerVictor Julien <vjulien@oisf.net>
Sat, 1 Apr 2023 05:07:33 +0000 (07:07 +0200)
Set no inspection in the opposite side of the transaction.

Ticket: #5799

rust/src/krb/krb5.rs

index 323d429792c7853c0f33ff12f437214208b4d08b..e81e3e8c935a2a3b34fac9c35d0829ab9935198d 100644 (file)
@@ -228,7 +228,7 @@ impl KRB5State {
 
 impl KRB5Transaction {
     pub fn new(id: u64) -> KRB5Transaction {
-        KRB5Transaction{
+        let mut krbtx = KRB5Transaction{
             msg_type: MessageType(0),
             cname: None,
             realm: None,
@@ -239,7 +239,9 @@ impl KRB5Transaction {
             de_state: None,
             events: std::ptr::null_mut(),
             tx_data: applayer::AppLayerTxData::new(),
-        }
+        };
+        krbtx.tx_data.set_inspect_direction(STREAM_TOCLIENT);
+        return krbtx;
     }
 }