mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
routing: fix hash of pubkeys.
Found by PVS Studio. Reported-by: Jon Griffiths <jgriffiths@blockstream.io> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
4bb7c5ba7b
commit
5349d2aaa7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue