Merge pull request #68 from gwillen/feature-fix-irc-parse-crash

irc: Fix crash bug in node announcement parsing
This commit is contained in:
Christian Decker 2016-11-04 23:02:59 +01:00 committed by GitHub
commit 6568083edd

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