Error if the dictionaries weren't initialized
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 20:15:25 +0000 (15:15 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 20:15:25 +0000 (15:15 -0500)
src/main/dhcpd.c

index 4102ec7..75605dd 100644 (file)
@@ -242,6 +242,8 @@ static int dhcp_process(REQUEST *request)
        vp = pairfind(request->packet->vps, 53, DHCP_MAGIC_VENDOR, TAG_ANY); /* DHCP-Message-Type */
        if (vp) {
                DICT_VALUE *dv = dict_valbyattr(53, DHCP_MAGIC_VENDOR, vp->vp_integer);
+               if (!dv) return RLM_MODULE_FAIL;
+
                DEBUG("Trying sub-section dhcp %s {...}",
                      dv->name[0] != '\0' ? dv->name : "<unknown>");
                rcode = module_post_auth(vp->vp_integer, request);