Add support for Vendor Specific Suboptions (RFC 4243)
[freeradius.git] / src / modules / proto_dhcp / rlm_dhcp.c
index 57fc650..08fc3f7 100644 (file)
@@ -59,8 +59,7 @@ static ssize_t dhcp_options_xlat(UNUSED void *instance, REQUEST *request,
                 return 0;
        }
 
-       if ((fr_dhcp_decode_options(request->packet,
-                                   vp->vp_octets, vp->length, &head) < 0) || (!head)) {
+       if ((fr_dhcp_decode_options(&head, request->packet, vp->vp_octets, vp->length) < 0) || (!head)) {
                RWDEBUG("DHCP option decoding failed: %s", fr_strerror());
                *out = '\0';
                return -1;