]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use the correct context
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 19 Jun 2024 20:37:35 +0000 (14:37 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 19 Jun 2024 20:37:35 +0000 (14:37 -0600)
src/modules/rlm_radius/rlm_radius_udp.c

index 4a625ca4af2b6855b4c83f2c671e3af4ed4ad83c..9cf930bc55e4cdee0a1911076e0eef5edd42b914 100644 (file)
@@ -1164,8 +1164,7 @@ static decode_fail_t decode(TALLOC_CTX *ctx, fr_pair_list_t *reply, uint8_t *res
         *      !client->active means a fake packet defining a dynamic client - so there will
         *      be no secret defined yet - so can't verify.
         */
-       if (fr_radius_decode(request->request_ctx, reply,
-                            data, data_len, &decode_ctx) < 0) {
+       if (fr_radius_decode(ctx, reply, data, data_len, &decode_ctx) < 0) {
                talloc_free(decode_ctx.tmp_ctx);
                RPEDEBUG("Failed reading packet");
                return DECODE_FAIL_UNKNOWN;