mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user