1
0
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:
Joseph Bisch 2016-10-27 11:18:37 -04:00
parent fb78787d4e
commit c98f5f23ea
No known key found for this signature in database
GPG Key ID: CF08FAC339AB7E8E

View File

@ -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);