From 2ce36a070b960a5d0bd34822c0a1671f4382cb8f Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Fri, 4 Nov 2016 15:01:01 -0700 Subject: [PATCH] irc: Fix crash bug in node announcement parsing --- daemon/irc_announce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/irc_announce.c b/daemon/irc_announce.c index cc7e07293..4f6733585 100644 --- a/daemon/irc_announce.c +++ b/daemon/irc_announce.c @@ -192,7 +192,7 @@ static void handle_node_announcement( struct node *node = add_node(istate->dstate, pk, hostname, port); if (splits[4] != NULL){ tal_free(node->alias); - node->alias = tal_hexdata(node, splits[5], strlen(splits[4])); + node->alias = tal_hexdata(node, splits[4], strlen(splits[4])); } }