From: nchaigne Date: Tue, 7 Aug 2018 14:35:25 +0000 (+0200) Subject: dhcpclient - xlat is not supported X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9566019e7cdb836100eebe3590b494bb2d776542;p=thirdparty%2Ffreeradius-server.git dhcpclient - xlat is not supported Apply the same processing as performed in radclient to input value pairs --- diff --git a/src/modules/proto_dhcpv4/dhcpclient.c b/src/modules/proto_dhcpv4/dhcpclient.c index 7af27ece74d..59c4689abd8 100644 --- a/src/modules/proto_dhcpv4/dhcpclient.c +++ b/src/modules/proto_dhcpv4/dhcpclient.c @@ -182,6 +182,16 @@ static RADIUS_PACKET *request_init(char const *filename) for (vp = fr_cursor_init(&cursor, &request->vps); vp; vp = fr_cursor_next(&cursor)) { + + /* + * Xlat expansions are not supported. Provide a string value instead. + */ + if (vp->type == VT_XLAT) { + vp->type = VT_DATA; + vp->vp_strvalue = vp->xlat; + vp->vp_length = talloc_array_length(vp->vp_strvalue) - 1; + } + /* * Allow to set packet type using DHCP-Message-Type */