mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
df-bug: avoid referencing null channel->owner
If dualopend dies, we shouldn't reference it
This commit is contained in:
parent
5ee4c9e46c
commit
4432672300
@ -62,7 +62,10 @@ static void channel_disconnect(struct channel *channel,
|
||||
|
||||
if (reconnect)
|
||||
channel_fail_reconnect(channel, "%s: %s",
|
||||
channel->owner->name, desc);
|
||||
channel->owner ?
|
||||
channel->owner->name :
|
||||
"dualopend-dead",
|
||||
desc);
|
||||
else
|
||||
channel_set_owner(channel, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user