irc: Fix crash bug in node announcement parsing

This commit is contained in:
Glenn Willen 2016-11-04 15:01:01 -07:00
parent 4bb7c5ba7b
commit 2ce36a070b

View File

@ -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]));
}
}