From c98f5f23ea6c711898288779d1d1670b81770317 Mon Sep 17 00:00:00 2001 From: Joseph Bisch Date: Thu, 27 Oct 2016 11:18:37 -0400 Subject: enforce check that chatnets are nodelists to handle invalid config --- src/core/chatnets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3