]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
maybe "type" can be NULL
authorAlan T. DeKok <aland@freeradius.org>
Mon, 12 Aug 2019 20:57:43 +0000 (16:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 12 Aug 2019 20:57:43 +0000 (16:57 -0400)
src/lib/server/cf_util.c

index b6229dd41c144c51fb005374600ec9cbd08b1aae..90dc1ca44476a3cf0001657de547cebef32c628f 100644 (file)
@@ -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"
         */