summaryrefslogtreecommitdiffstats
path: root/rust/src/dns/log.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:40:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:40:14 +0000
commit2c370a1dd70130d82e9222945ff2421a4168e640 (patch)
tree670794b3ba895e1a01c834c5b7881d123eb46f38 /rust/src/dns/log.rs
parentAdding debian version 1:7.0.3-1. (diff)
downloadsuricata-2c370a1dd70130d82e9222945ff2421a4168e640.tar.xz
suricata-2c370a1dd70130d82e9222945ff2421a4168e640.zip
Merging upstream version 1:7.0.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'rust/src/dns/log.rs')
-rw-r--r--rust/src/dns/log.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/dns/log.rs b/rust/src/dns/log.rs
index 5212b1a..86325d5 100644
--- a/rust/src/dns/log.rs
+++ b/rust/src/dns/log.rs
@@ -368,7 +368,7 @@ pub fn dns_rcode_string(flags: u16) -> String {
}
/// Format bytes as an IP address string.
-pub fn dns_print_addr(addr: &Vec<u8>) -> std::string::String {
+pub fn dns_print_addr(addr: &[u8]) -> std::string::String {
if addr.len() == 4 {
return format!("{}.{}.{}.{}", addr[0], addr[1], addr[2], addr[3]);
} else if addr.len() == 16 {