diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:32:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:32:06 +0100 |
commit | 357bc17975e3a60a64c46f56b5330747c67705b2 (patch) | |
tree | a433ef446817659ae3a4fc8c60f2adb68082650d /src/libsystemd-network/test-dhcp-server.c | |
parent | 8702319e119008954baa872d50d0e4098e6e83db (diff) | |
parent | 933f9caeeb2b3c1b951d330e04beb04226e5a890 (diff) |
Merge pull request #1923 from zonque/siphash
siphash24: let siphash24_finalize() and siphash24() return the result…
Diffstat (limited to 'src/libsystemd-network/test-dhcp-server.c')
-rw-r--r-- | src/libsystemd-network/test-dhcp-server.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd-network/test-dhcp-server.c b/src/libsystemd-network/test-dhcp-server.c index 62fdec46da..2b5f59e4d6 100644 --- a/src/libsystemd-network/test-dhcp-server.c +++ b/src/libsystemd-network/test-dhcp-server.c @@ -200,13 +200,11 @@ static void test_message_handler(void) { static uint64_t client_id_hash_helper(DHCPClientId *id, uint8_t key[HASH_KEY_SIZE]) { struct siphash state; - uint64_t hash; siphash24_init(&state, key); client_id_hash_func(id, &state); - siphash24_finalize(&hash, &state); - return hash; + return htole64(siphash24_finalize(&state)); } static void test_client_id_hash(void) { |