mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
reestablish_tlvs: don't lose them btw tmpctx cleanup
This commit is contained in:
parent
77d2c538b3
commit
dd00d4dcf8
1 changed files with 4 additions and 1 deletions
|
@ -3483,7 +3483,7 @@ static void do_reconnect_dance(struct state *state)
|
|||
struct pubkey remote_current_per_commit_point;
|
||||
struct tx_state *tx_state = state->tx_state;
|
||||
#if EXPERIMENTAL_FEATURES
|
||||
struct tlv_channel_reestablish_tlvs *tlvs = tlv_channel_reestablish_tlvs_new(tmpctx);
|
||||
struct tlv_channel_reestablish_tlvs *tlvs = tlv_channel_reestablish_tlvs_new(NULL);
|
||||
#endif
|
||||
|
||||
/* BOLT #2:
|
||||
|
@ -3534,6 +3534,9 @@ static void do_reconnect_dance(struct state *state)
|
|||
peer_wire_name(fromwire_peektype(msg)),
|
||||
tal_hex(msg, msg));
|
||||
|
||||
#if EXPERIMENTAL_FEATURES
|
||||
tal_free(tlvs);
|
||||
#endif /* EXPERIMENTAL_FEATURES */
|
||||
check_channel_id(state, &cid, &state->channel_id);
|
||||
|
||||
status_debug("Got dualopend reestablish commit=%"PRIu64
|
||||
|
|
Loading…
Add table
Reference in a new issue