From 7969cc335e37018efbd23c33ba723fb10089a76b Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 31 Jul 2018 13:57:14 +0200 Subject: [PATCH] Allocate off ctx instead of tmpctx in encode_short_channel_ids_start(const tal_t *ctx) --- gossipd/gossip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/gossip.c b/gossipd/gossip.c index 980f20420..95b70eb23 100644 --- a/gossipd/gossip.c +++ b/gossipd/gossip.c @@ -197,7 +197,7 @@ static struct peer *find_peer(struct daemon *daemon, const struct pubkey *id) static u8 *encode_short_channel_ids_start(const tal_t *ctx) { - u8 *encoded = tal_arr(tmpctx, u8, 0); + u8 *encoded = tal_arr(ctx, u8, 0); towire_u8(&encoded, SHORTIDS_ZLIB); return encoded; }