From: Alan T. DeKok Date: Tue, 3 Mar 2020 15:39:56 +0000 (-0500) Subject: use fr_radius_decode() in preparation for using FR_TYPE_GROUP X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c73bb930d84cc083d2383381ce2959684d65064;p=thirdparty%2Ffreeradius-server.git use fr_radius_decode() in preparation for using FR_TYPE_GROUP --- diff --git a/src/modules/proto_radius/proto_radius.c b/src/modules/proto_radius/proto_radius.c index 4349dbcc2e3..a552eb3a902 100644 --- a/src/modules/proto_radius/proto_radius.c +++ b/src/modules/proto_radius/proto_radius.c @@ -307,8 +307,9 @@ static int mod_decode(void const *instance, REQUEST *request, uint8_t *const dat * That MUST be set and checked in the underlying * transport, via a call to fr_radius_ok(). */ - if (fr_radius_packet_decode(request->packet, NULL, 0, - inst->tunnel_password_zeros, client->secret) < 0) { + if (fr_radius_decode(request->packet, request->packet->data, request->packet->data_len, + NULL, client->secret, talloc_array_length(client->secret) - 1, + &request->packet->vps) < 0) { RPEDEBUG("Failed decoding packet"); return -1; }