From: Alan T. DeKok Date: Mon, 13 Feb 2017 18:57:37 +0000 (-0500) Subject: cf->data tree may be NULL. Fixes #1911 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14d200fe99fdd23912eca71b518566b614030035;p=thirdparty%2Ffreeradius-server.git cf->data tree may be NULL. Fixes #1911 --- diff --git a/src/main/conffile.c b/src/main/conffile.c index 941f02e1f36..f2ebd412744 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -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); }