]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
cf->data tree may be NULL. Fixes #1911
authorAlan T. DeKok <aland@freeradius.org>
Mon, 13 Feb 2017 18:57:37 +0000 (13:57 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 13 Feb 2017 18:58:16 +0000 (13:58 -0500)
src/main/conffile.c

index 941f02e1f36e3cf95544800f5daa96802646dbb8..f2ebd4127446cb57292c345789837735c78922fa 100644 (file)
@@ -4229,6 +4229,8 @@ int _cf_data_walk(CONF_SECTION *cs, char const *type, cf_walker_t cb, void *ctx)
                .ctx = ctx
        };
 
+       if (!cs->data_tree) return 0;
+
        return rbtree_walk(cs->data_tree, RBTREE_IN_ORDER, _cf_data_walk_cb, &cd_ctx);
 }