mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
lightningd: fix sizeof() argument correctly.
c25ce826ab claimed to fix this, but didn't;
this is the correct fix.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
93865bb0f3
commit
f019dc3d71
@@ -1392,7 +1392,7 @@ static bool channel_added_their_htlc(struct channel *channel,
|
||||
|
||||
/* FIXME: Our wire generator can't handle optional elems in arrays,
|
||||
* so we translate all-zero-shared-secret to NULL. */
|
||||
if (memeqzero(shared_secret, sizeof(shared_secret)))
|
||||
if (memeqzero(shared_secret, sizeof(*shared_secret)))
|
||||
shared_secret = NULL;
|
||||
|
||||
/* This stays around even if we fail it immediately: it *is*
|
||||
|
||||
Reference in New Issue
Block a user