mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
connectd: fix crash when we get an incoming conn while outgoing attempt is ratelimited.
``` Program received signal SIGSEGV, Segmentation fault. 0x000000001014e9d8 in io_set_finish_ (conn=0x0, finish=0x0, arg=0x0) at ccan/ccan/io/io.c:137 137 conn->finish = finish; (gdb) bt incoming=true) at connectd/connectd.c:394 ``` Fixes: #7871 Reported-by: grubles Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-None: broken in this release
This commit is contained in:
parent
36ad654fc1
commit
2e90f59dfe
1 changed files with 4 additions and 2 deletions
|
@ -390,8 +390,10 @@ struct io_plan *peer_connected(struct io_conn *conn,
|
|||
|
||||
if (connect) {
|
||||
/*~ Now we've connected, disable the callback which would
|
||||
* cause us to to try the next address on failure. */
|
||||
io_set_finish(connect->conn, NULL, NULL);
|
||||
* cause us to to try the next address on failure (if it's
|
||||
* in progress right now) */
|
||||
if (connect->conn)
|
||||
io_set_finish(connect->conn, NULL, NULL);
|
||||
tal_free(connect);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue