dv might not exist if the dictionaries are butchered
authorAlan T. DeKok <aland@freeradius.org>
Sun, 1 Feb 2015 22:27:49 +0000 (17:27 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 1 Feb 2015 22:27:49 +0000 (17:27 -0500)
src/modules/proto_dhcp/dhcpd.c

index 2265cb3..e84936e 100644 (file)
@@ -303,7 +303,7 @@ static int dhcp_process(REQUEST *request)
        if (vp) {
                DICT_VALUE *dv = dict_valbyattr(53, DHCP_MAGIC_VENDOR, vp->vp_integer);
                DEBUG("Trying sub-section dhcp %s {...}",
-                     dv->name ? dv->name : "<unknown>");
+                     dv ? dv->name : "<unknown>");
                rcode = process_post_auth(vp->vp_integer, request);
        } else {
                DEBUG("DHCP: Failed to find DHCP-Message-Type in packet!");