mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
enforce check that chatnets are nodelists to handle invalid config
This commit is contained in:
parent
fb78787d4e
commit
c98f5f23ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue