pex-msg: fix siphash key initializer
authorFelix Fietkau <nbd@nbd.name>
Sun, 28 Aug 2022 18:39:47 +0000 (20:39 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 28 Aug 2022 18:39:47 +0000 (20:39 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
pex-msg.c

index 22825be1d552738ad2552455a57d4a26bac61f77..c97cfeb496bf38656aef1e1393502fb814b9469f 100644 (file)
--- 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;