Skip to content

Commit

Permalink
Allocate off ctx instead of tmpctx in encode_short_channel_ids_start(…
Browse files Browse the repository at this point in the history
…const tal_t *ctx)
  • Loading branch information
practicalswift authored and rustyrussell committed Aug 1, 2018
1 parent 2c7170b commit 7969cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossipd/gossip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7969cc3

Please sign in to comment.