summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2016-12-08 12:11:59 +0100
committerGitHub <noreply@github.com>2016-12-08 12:11:59 +0100
commit964f423fed72914fdfc1aed9993a5c63894592bb (patch)
tree13d886b20c54d6049e72c90b3f660065ffec28b5 /src/core
parent955cf622a558022fbd952e07b7462206743562e8 (diff)
parentc98f5f23ea6c711898288779d1d1670b81770317 (diff)
downloadirssi-964f423fed72914fdfc1aed9993a5c63894592bb.zip
Merge pull request #570 from josephbisch/fix-issue-563
enforce check that chatnets are nodelists to handle invalid config
Diffstat (limited to 'src/core')
-rw-r--r--src/core/chatnets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/chatnets.c b/src/core/chatnets.c
index dd4d94b3..e0a7a8d9 100644
--- a/src/core/chatnets.c
+++ b/src/core/chatnets.c
@@ -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);