From: Eric Leblond Date: Mon, 23 Jan 2023 19:04:26 +0000 (+0100) Subject: krb: add TX orientation X-Git-Tag: suricata-6.0.11~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94a707238487c6034afa667f6161e8f2e3679ea4;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 323d429792..e81e3e8c93 100644 --- a/rust/src/krb/krb5.rs +++ b/rust/src/krb/krb5.rs @@ -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; } }