mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 00:24:28 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user