Skip to content

Commit

Permalink
gossipd: fix crash in seeker rotation code.
Browse files Browse the repository at this point in the history
Reported-by: hMsats
Fixes: #7875
Signed-off-by: Rusty Russell <[email protected]>
Changelog-None: introduced in rc1
  • Loading branch information
rustyrussell committed Nov 28, 2024
1 parent d099f9f commit 9499d5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gossipd/seeker.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,8 @@ static void reset_gossip_performance_metrics(struct seeker *seeker)
{
seeker->new_gossiper_elapsed = 0;
for (int i = 0; i < tal_count(seeker->gossiper); i++) {
seeker->gossiper[i]->gossip_counter = 0;
if (seeker->gossiper[i])
seeker->gossiper[i]->gossip_counter = 0;
}
}

Expand Down

0 comments on commit 9499d5c

Please sign in to comment.