mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
connectd: don't leak init message.
It's a very bounded leak, since we can only have one and it's connected to the peer lifetime, but we don't need it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
ab735dcbe6
commit
5b7ef7ab49
@ -32,7 +32,7 @@ static struct io_plan *read_init(struct io_conn *conn, struct peer *peer);
|
||||
static struct io_plan *peer_init_received(struct io_conn *conn,
|
||||
struct peer *peer)
|
||||
{
|
||||
u8 *msg = cryptomsg_decrypt_body(peer, &peer->cs, peer->msg);
|
||||
u8 *msg = cryptomsg_decrypt_body(tmpctx, &peer->cs, peer->msg);
|
||||
u8 *globalfeatures, *localfeatures;
|
||||
|
||||
if (!msg)
|
||||
|
Loading…
Reference in New Issue
Block a user