Skip to content

Commit

Permalink
fix: no more using empty string in process_tsig
Browse files Browse the repository at this point in the history
  • Loading branch information
joalopez1206 committed Jul 10, 2024
1 parent dfb8b0f commit 0bfd3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tsig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ pub fn process_tsig(msg: &DnsMessage,key:&[u8], key_name: String, time: u64, av
let fudge = tsig_rr_copy.get_fudge();
let time_signed = tsig_rr_copy.get_time_signed();
let mac_received = tsig_rr_copy.get_mac();
let key_name = "".to_string();
let key_name = rr_copy.get_name().get_name();
let mut new_alg_name: TsigAlgorithm = TsigAlgorithm::HmacSha1;
match name_alg.as_str() {
"hmac-sha1" => new_alg_name = TsigAlgorithm::HmacSha1,
Expand Down

0 comments on commit 0bfd3dd

Please sign in to comment.