forked from PsychoticNinja/irssi
enforce check that chatnets are nodelists to handle invalid config
This commit is contained in:
parent
fb78787d4e
commit
c98f5f23ea
@ -132,7 +132,7 @@ static void chatnet_read(CONFIG_NODE *node)
|
|||||||
CHATNET_REC *rec;
|
CHATNET_REC *rec;
|
||||||
char *type;
|
char *type;
|
||||||
|
|
||||||
if (node == NULL || node->key == NULL)
|
if (node == NULL || node->key == NULL || !is_node_list(node))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
type = config_node_get_str(node, "type", NULL);
|
type = config_node_get_str(node, "type", NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user