diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-20 21:54:37 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-22 12:55:14 +0200 |
commit | f281fc1e95ff2e39c3cc4a90444434339ae24c04 (patch) | |
tree | 0a7bdf667b388e373c51b1f5f96931702f2dbb8f /src/resolve | |
parent | util: introduce siphash24_compress_string() (diff) | |
download | systemd-f281fc1e95ff2e39c3cc4a90444434339ae24c04.tar.xz systemd-f281fc1e95ff2e39c3cc4a90444434339ae24c04.zip |
tree-wide: use siphash24_compress_string() where it is applicable
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-server.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-server.c b/src/resolve/resolved-dns-server.c index c87026f434..9c221e1989 100644 --- a/src/resolve/resolved-dns-server.c +++ b/src/resolve/resolved-dns-server.c @@ -627,8 +627,7 @@ static void dns_server_hash_func(const DnsServer *s, struct siphash *state) { siphash24_compress(&s->address, FAMILY_ADDRESS_SIZE(s->family), state); siphash24_compress(&s->port, sizeof(s->port), state); siphash24_compress(&s->ifindex, sizeof(s->ifindex), state); - if (s->server_name) - siphash24_compress(s->server_name, strlen(s->server_name), state); + siphash24_compress_string(s->server_name, state); } static int dns_server_compare_func(const DnsServer *x, const DnsServer *y) { |