From 0a9c5626645e0b714943c4c9a79a06dddf5d8457 Mon Sep 17 00:00:00 2001 From: niftynei Date: Thu, 10 Dec 2020 18:02:28 -0600 Subject: [PATCH] df: state, clean more things up --- openingd/dualopend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openingd/dualopend.c b/openingd/dualopend.c index 41b73107d..0ff258342 100644 --- a/openingd/dualopend.c +++ b/openingd/dualopend.c @@ -279,6 +279,10 @@ static void negotiation_aborted(struct state *state, bool am_opener, * failed. */ memset(&state->channel_id, 0, sizeof(state->channel_id)); state->channel = tal_free(state->channel); + state->changeset = tal_free(state->changeset); + + for (size_t i = 0; i < NUM_TX_MSGS; i++) + state->tx_msg_count[i] = 0; } /*~ For negotiation failures: we tell them the parameter we didn't like. */