projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ead7a0
)
Error if the dictionaries weren't initialized
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 20:15:25 +0000
(15:15 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 20:15:25 +0000
(15:15 -0500)
src/main/dhcpd.c
patch
|
blob
|
history
diff --git
a/src/main/dhcpd.c
b/src/main/dhcpd.c
index
4102ec7
..
75605dd
100644
(file)
--- 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 : "<unknown>");
rcode = module_post_auth(vp->vp_integer, request);