diff --git a/openingd/dualopend.c b/openingd/dualopend.c index c4486e5fc..e7dd54266 100644 --- a/openingd/dualopend.c +++ b/openingd/dualopend.c @@ -359,7 +359,7 @@ static void open_abort(struct state *state, * status. */ peer_billboard(true, errmsg); msg = towire_tx_abort(NULL, &state->channel_id, - (u8 *)tal_dup_arr(errmsg, char, errmsg, + (u8 *)tal_dup_arr(tmpctx, char, errmsg, strlen(errmsg), 0)); peer_write(state->pps, take(msg));