]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use fr_radius_decode() in preparation for using FR_TYPE_GROUP
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Mar 2020 15:39:56 +0000 (10:39 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Mar 2020 19:23:25 +0000 (14:23 -0500)
src/modules/proto_radius/proto_radius.c

index 4349dbcc2e3d6e4d5008b9b742447c2c32aa5546..a552eb3a90229ab30f38a276849fc62c7805de17 100644 (file)
@@ -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;
        }