From: Alan T. DeKok Date: Mon, 12 Aug 2019 20:57:43 +0000 (-0400) Subject: maybe "type" can be NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a2dd6b2438f7ce125c061e9ce80d8dce68356e;p=thirdparty%2Ffreeradius-server.git maybe "type" can be NULL --- diff --git a/src/lib/server/cf_util.c b/src/lib/server/cf_util.c index b6229dd41c1..90dc1ca4447 100644 --- a/src/lib/server/cf_util.c +++ b/src/lib/server/cf_util.c @@ -1470,6 +1470,8 @@ CONF_DATA const *_cf_data_find(CONF_ITEM const *ci, char const *type, char const found = cf_find(ci, CONF_ITEM_DATA, type, name); if (found) return cf_item_to_data(found); + if (!type) return NULL; + /* * type "void" is special, which means "wildcard" */