From 36e31cacf926c9afd0561e0cdbab7d197244c9ef Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 24 Aug 2018 16:36:59 +0930 Subject: [PATCH] openingd: don't leak messages from master. Signed-off-by: Rusty Russell --- openingd/opening.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openingd/opening.c b/openingd/opening.c index d93f27478..a54f5affc 100644 --- a/openingd/opening.c +++ b/openingd/opening.c @@ -1043,7 +1043,7 @@ static void fail_if_all_error(const u8 *inner) static u8 *handle_master_in(struct state *state) { - u8 *msg = wire_sync_read(state, REQ_FD); + u8 *msg = wire_sync_read(tmpctx, REQ_FD); enum opening_wire_type t = fromwire_peektype(msg); u64 change_satoshis; u32 change_keyindex;