]> 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>
Fri, 31 Mar 2023 17:30:07 +0000 (19:30 +0200)
Set no inspection in the opposite side of the transaction.

Ticket: #5799

rust/src/krb/krb5.rs

index 9ae498fbbd92a68d38d0a90efae7ee05d20e2ebf..d20bd7db8266dd69b67ce39c87e5066aa78fe9b4 100644 (file)
@@ -240,7 +240,7 @@ impl KRB5State {
 
 impl KRB5Transaction {
     pub fn new(id: u64) -> KRB5Transaction {
-        KRB5Transaction{
+        let mut krbtx = KRB5Transaction{
             msg_type: MessageType(0),
             cname: None,
             realm: None,
@@ -250,7 +250,9 @@ impl KRB5Transaction {
             error_code: None,
             id,
             tx_data: applayer::AppLayerTxData::new(),
-        }
+        };
+        krbtx.tx_data.set_inspect_direction(Direction::ToClient);
+        return krbtx;
     }
 }