forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lightningd: don't access peer after free if it disconnects during pee…
…r_connected hook. We keep the node_id, not a pointer to the peer. This also means that it might have reconnected while we were in the hook, so make sure we ignore the result if it's in state PEER_CONNECTED. And remove the `tal_steal(peer, hook_payload)` which doesn't do anything: the plugin_hook call steals hook_payload anyway! Fixes: ElementsProject#5944
- Loading branch information
1 parent
d6b553c
commit c0b898e
Showing
1 changed file
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters