mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue