mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
fundchannel_start: don't return null message
When the peer sends back an error, we return null, but sending a NULL message back to lightningd causes a parsing error on their side. negotiation_failed already calls back the peer, all we need to do here is exit.
This commit is contained in:
parent
f155c61bdf
commit
8854bc8ae6
1 changed files with 2 additions and 1 deletions
|
@ -1630,7 +1630,8 @@ static u8 *handle_master_in(struct state *state)
|
||||||
msg = funder_channel_start(state, channel_flags);
|
msg = funder_channel_start(state, channel_flags);
|
||||||
|
|
||||||
/* We want to keep openingd alive, since we're not done yet */
|
/* We want to keep openingd alive, since we're not done yet */
|
||||||
wire_sync_write(REQ_FD, take(msg));
|
if (msg)
|
||||||
|
wire_sync_write(REQ_FD, take(msg));
|
||||||
return NULL;
|
return NULL;
|
||||||
case WIRE_OPENING_FUNDER_COMPLETE:
|
case WIRE_OPENING_FUNDER_COMPLETE:
|
||||||
if (!fromwire_opening_funder_complete(msg,
|
if (!fromwire_opening_funder_complete(msg,
|
||||||
|
|
Loading…
Add table
Reference in a new issue