From a9b72414174267397254932c04d32944d0e1c69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20P=C3=A9rez=20Gonz=C3=A1lez?= Date: Thu, 28 Apr 2022 12:47:06 +0200 Subject: [PATCH] krb5: set msg_type for KRB-ERROR messages to MessageType::KRB_ERROR --- rust/src/krb/krb5.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/krb/krb5.rs b/rust/src/krb/krb5.rs index b550d1f99d..42028794cf 100644 --- a/rust/src/krb/krb5.rs +++ b/rust/src/krb/krb5.rs @@ -201,7 +201,7 @@ impl KRB5State { let res = krb5_parser::parse_krb_error(i); if let Ok((_,error)) = res { let mut tx = self.new_tx(direction); - tx.msg_type = MessageType(self.req_id as u32); + tx.msg_type = MessageType::KRB_ERROR; tx.cname = error.cname; tx.realm = error.crealm; tx.sname = Some(error.sname);