1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Merge pull request #570 from josephbisch/fix-issue-563

enforce check that chatnets are nodelists to handle invalid config
This commit is contained in:
ailin-nemui 2016-12-08 12:11:59 +01:00 committed by GitHub
commit 964f423fed

View File

@ -132,7 +132,7 @@ static void chatnet_read(CONFIG_NODE *node)
CHATNET_REC *rec;
char *type;
if (node == NULL || node->key == NULL)
if (node == NULL || node->key == NULL || !is_node_list(node))
return;
type = config_node_get_str(node, "type", NULL);