From 74a14c00abb07d2d8c79c61c459f70d28764dee6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 28 Aug 2022 20:39:47 +0200 Subject: [PATCH] pex-msg: fix siphash key initializer Signed-off-by: Felix Fietkau --- pex-msg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pex-msg.c b/pex-msg.c index 22825be..c97cfeb 100644 --- a/pex-msg.c +++ b/pex-msg.c @@ -42,8 +42,10 @@ struct pex_msg_update_recv_ctx { uint64_t pex_network_hash(const uint8_t *auth_key, uint64_t req_id) { siphash_key_t key = { - be64_to_cpu(req_id), - be64_to_cpu(req_id) + .key = { + be64_to_cpu(req_id), + be64_to_cpu(req_id) + } }; uint64_t hash; -- 2.30.2