From afdebe2ecd8f55d412d2d6a1d358ef6e3bf151ec Mon Sep 17 00:00:00 2001 From: Carlo Date: Sun, 14 Jul 2024 22:59:27 -0400 Subject: [PATCH] Fix: line 88, changed rclass byte extracton --- src/tsig.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsig.rs b/src/tsig.rs index 97010836..bb24bdc8 100644 --- a/src/tsig.rs +++ b/src/tsig.rs @@ -85,7 +85,7 @@ pub fn get_digest_request(mac: Vec ,dns_msg: Vec, tsig_rr: ResourceRecor res.extend(tsig_rr.get_name().to_bytes()); //The below shifts are meant to correctly retreive theby //processing TSIG RR - let rclass_bytes: u16 = Rclass::from_rclass_to_int(tsig_rr.get_rclass()); + let rclass_bytes: u16 = Rclass::from(tsig_rr.get_rclass()).into(); let rclass_ubyte = (rclass_bytes >> 8) as u8; let rclass_lbyte = rclass_bytes as u8; res.push(rclass_ubyte);