Skip to content

Commit

Permalink
gossipd: use tal_dup_talarr helper.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Jan 24, 2022
1 parent f6191c8 commit 02aa39a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gossipd/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1450,11 +1450,10 @@ u8 *handle_channel_update(struct routing_state *rstate, const u8 *update TAKES,
u32 fee_proportional_millionths;
struct bitcoin_blkid chain_hash;
u8 direction;
size_t len = tal_count(update);
struct pending_cannouncement *pending;
u8 *err;

serialized = tal_dup_arr(tmpctx, u8, update, len, 0);
serialized = tal_dup_talarr(tmpctx, u8, update);
if (!fromwire_channel_update(serialized, &signature,
&chain_hash, &short_channel_id,
&timestamp, &message_flags,
Expand Down

0 comments on commit 02aa39a

Please sign in to comment.