From: Eric Leblond Date: Mon, 23 Jan 2023 19:04:26 +0000 (+0100) Subject: krb: add TX orientation X-Git-Tag: suricata-7.0.0-rc2~466 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c64e4526cdb4fc6e486420ed39edb7864f1e08b6;p=thirdparty%2Fsuricata.git krb: add TX orientation Set no inspection in the opposite side of the transaction. Ticket: #5799 --- diff --git a/rust/src/krb/krb5.rs b/rust/src/krb/krb5.rs index 9ae498fbbd..d20bd7db82 100644 --- a/rust/src/krb/krb5.rs +++ b/rust/src/krb/krb5.rs @@ -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; } }