mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
gossipd: don't leak fields in create_node_announcement.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a475098928
commit
5d1f71c3c0
@ -317,11 +317,11 @@ static u8 *create_node_announcement(const tal_t *ctx, struct daemon *daemon,
|
||||
secp256k1_ecdsa_signature *sig,
|
||||
u32 timestamp)
|
||||
{
|
||||
u8 *addresses = tal_arr(ctx, u8, 0);
|
||||
u8 *addresses = tal_arr(tmpctx, u8, 0);
|
||||
u8 *announcement;
|
||||
size_t i;
|
||||
if (!sig) {
|
||||
sig = tal(ctx, secp256k1_ecdsa_signature);
|
||||
sig = tal(tmpctx, secp256k1_ecdsa_signature);
|
||||
memset(sig, 0, sizeof(*sig));
|
||||
}
|
||||
for (i = 0; i < tal_count(daemon->announcable); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user