From: Alan T. DeKok Date: Sun, 17 Feb 2013 20:15:25 +0000 (-0500) Subject: Error if the dictionaries weren't initialized X-Git-Tag: release_3_0_0_beta1~1067 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10f7b6463ead59d654a2fea5fe4fbabc33b71488;p=thirdparty%2Ffreeradius-server.git Error if the dictionaries weren't initialized --- diff --git a/src/main/dhcpd.c b/src/main/dhcpd.c index 4102ec7f0f0..75605dd98fb 100644 --- a/src/main/dhcpd.c +++ b/src/main/dhcpd.c @@ -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 : ""); rcode = module_post_auth(vp->vp_integer, request);