diff options
author | Joseph Bisch <joseph.bisch@gmail.com> | 2016-10-27 11:18:37 -0400 |
---|---|---|
committer | Joseph Bisch <joseph.bisch@gmail.com> | 2016-10-27 11:18:37 -0400 |
commit | c98f5f23ea6c711898288779d1d1670b81770317 (patch) | |
tree | 9ee21278ff663f18e169f331206a50fcc145feff /src/core/chatnets.c | |
parent | fb78787d4e2098612979b45df3237b67effbbc3a (diff) | |
download | irssi-c98f5f23ea6c711898288779d1d1670b81770317.zip |
enforce check that chatnets are nodelists to handle invalid config
Diffstat (limited to 'src/core/chatnets.c')
-rw-r--r-- | src/core/chatnets.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |