Browse Source

peer: don't assign io_data and id twice when connecting out.

peer_first_connected does this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
ac7d80bbeb
  1. 2
      daemon/peer.c

2
daemon/peer.c

@ -2659,8 +2659,6 @@ static struct io_plan *crypto_on_out(struct io_conn *conn,
connect->name, connect->port);
return io_close(conn);
}
peer->io_data = tal_steal(peer, iod);
peer->id = tal_dup(peer, struct pubkey, id);
peer->anchor.input = tal_steal(peer, connect->input);
peer->open_jsoncmd = connect->cmd;
return peer_crypto_on(conn, peer);

Loading…
Cancel
Save