mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
peer_htlcs: Prevent htlc_out from being handled multiple times in case of immediate channeld error.
This commit is contained in:
parent
bd5dd46c4f
commit
c46727604e
1 changed files with 2 additions and 0 deletions
|
@ -349,6 +349,8 @@ static void rcvd_htlc_reply(struct subd *subd, const u8 *msg, const int *fds,
|
|||
} else
|
||||
local_fail_htlc(hout->in, failure_code,
|
||||
hout->key.peer->scid);
|
||||
/* Prevent hout from being failed twice. */
|
||||
tal_del_destructor(hout, hout_subd_died);
|
||||
tal_free(hout);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue