From 784ec96841dec84488532593853acd19e35b15d4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 17 Jan 2018 06:14:32 +1030 Subject: [PATCH] gossip: save alias from node_announcement Signed-off-by: Rusty Russell --- gossipd/routing.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gossipd/routing.c b/gossipd/routing.c index 025942693..1cbfdc991 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -934,6 +934,8 @@ void handle_node_announcement( node->last_timestamp = timestamp; memcpy(node->rgb_color, rgb_color, 3); + tal_free(node->alias); + node->alias = tal_dup_arr(node, u8, alias, 32, 0); u8 *tag = tal_arr(tmpctx, u8, 0); towire_pubkey(&tag, &node_id);