]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
it's better to do this only for Access-Challenge
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Apr 2025 17:09:05 +0000 (13:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Apr 2025 17:09:05 +0000 (13:09 -0400)
src/main/process.c

index 8ae83092c7c652641b13598cd39d92eeca0c84e9..7d802536e76f5b93e934c92bfc0cee02c03491a8 100644 (file)
@@ -2780,7 +2780,7 @@ static int process_proxy_reply(REQUEST *request, RADIUS_PACKET *reply)
         *      attribute in the reply.
         */
        if (request->home_pool->affinity_group &&
-           (request->packet->code == PW_CODE_ACCESS_REQUEST) &&
+           (request->reply->code == PW_CODE_ACCESS_CHALLENGE) &&
            ((vp = fr_pair_find_by_num(request->reply->vps, PW_STATE, 0, TAG_ANY)) != NULL)) {
                uint8_t *src;