Skip to content

Commit

Permalink
gossipd: avoid gossipd crash due to double freeing timer
Browse files Browse the repository at this point in the history
  • Loading branch information
endothermicdev authored and rustyrussell committed Jan 30, 2023
1 parent f2f0511 commit ed48155
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gossipd/gossip_generation.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ static void update_own_node_announcement_after_startup(struct daemon *daemon)
static void force_self_nannounce_regen(struct daemon *daemon)
{
struct node *self = get_node(daemon->rstate, &daemon->id);

/* Clear timer pointer now. */
daemon->node_announce_regen_timer = NULL;
/* No channels left? We'll restart timer once we have one. */
if (!self || !self->bcast.index)
return;
Expand Down

0 comments on commit ed48155

Please sign in to comment.