diff --git a/daemon/routing.c b/daemon/routing.c index 6c1c60730..be011d1f1 100644 --- a/daemon/routing.c +++ b/daemon/routing.c @@ -21,7 +21,7 @@ static const secp256k1_pubkey *keyof_node(const struct node *n) static size_t hash_key(const secp256k1_pubkey *key) { - return siphash24(siphash_seed(), key, sizeof(key)); + return siphash24(siphash_seed(), key, sizeof(*key)); } static bool node_eq(const struct node *n, const secp256k1_pubkey *key)