Browse Source

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.
travis-debug
lisa neigut 5 years ago
committed by Rusty Russell
parent
commit
8854bc8ae6
  1. 1
      openingd/openingd.c

1
openingd/openingd.c

@ -1630,6 +1630,7 @@ static u8 *handle_master_in(struct state *state)
msg = funder_channel_start(state, channel_flags);
/* We want to keep openingd alive, since we're not done yet */
if (msg)
wire_sync_write(REQ_FD, take(msg));
return NULL;
case WIRE_OPENING_FUNDER_COMPLETE:

Loading…
Cancel
Save