Browse Source

irc: Fix crash bug in node announcement parsing

ppa-0.6.1
Glenn Willen 8 years ago
parent
commit
2ce36a070b
  1. 2
      daemon/irc_announce.c

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

Loading…
Cancel
Save