summaryrefslogtreecommitdiff
path: root/src/core/chatnets.c
diff options
context:
space:
mode:
authorJoseph Bisch <joseph.bisch@gmail.com>2016-10-27 11:18:37 -0400
committerJoseph Bisch <joseph.bisch@gmail.com>2016-10-27 11:18:37 -0400
commitc98f5f23ea6c711898288779d1d1670b81770317 (patch)
tree9ee21278ff663f18e169f331206a50fcc145feff /src/core/chatnets.c
parentfb78787d4e2098612979b45df3237b67effbbc3a (diff)
downloadirssi-c98f5f23ea6c711898288779d1d1670b81770317.zip
enforce check that chatnets are nodelists to handle invalid config
Diffstat (limited to 'src/core/chatnets.c')
-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);