From b10bae1ceb3477c442269ad6e2cd3d1e0fcd9926 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 24 Aug 2018 14:50:06 +0930 Subject: [PATCH] gossipd: use ctx arg in create_channel_update. Turns out it was always `tmpctx` anyway, so this isn't a real bug right now. Signed-off-by: Rusty Russell --- gossipd/gossip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/gossip.c b/gossipd/gossip.c index 1b0ffcd8f..1387787f5 100644 --- a/gossipd/gossip.c +++ b/gossipd/gossip.c @@ -1024,7 +1024,7 @@ static u8 *create_channel_update(const tal_t *ctx, if (disable) flags |= ROUTING_FLAGS_DISABLED; - update = towire_channel_update(tmpctx, &dummy_sig, + update = towire_channel_update(ctx, &dummy_sig, &rstate->chain_hash, &chan->scid, timestamp,