mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
irc: Fix crash bug in node announcement parsing
This commit is contained in:
parent
4bb7c5ba7b
commit
2ce36a070b
@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user