mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
openingd: don't leak peer messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
36e31cacf9
commit
11a1ec6e94
@@ -951,7 +951,7 @@ static u8 *fundee_channel(struct state *state, const u8 *open_channel_msg)
|
||||
|
||||
static u8 *handle_peer_in(struct state *state)
|
||||
{
|
||||
u8 *msg = sync_crypto_read(NULL, &state->cs, PEER_FD);
|
||||
u8 *msg = sync_crypto_read(tmpctx, &state->cs, PEER_FD);
|
||||
enum wire_type t = fromwire_peektype(msg);
|
||||
struct channel_id channel_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user