]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
home_pool may be NULL
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Apr 2025 18:04:01 +0000 (14:04 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Apr 2025 18:04:01 +0000 (14:04 -0400)
src/main/process.c

index 7d802536e76f5b93e934c92bfc0cee02c03491a8..25ffdc9a14cf60bc55fccbc770a85c7546ad7989 100644 (file)
@@ -2779,7 +2779,7 @@ static int process_proxy_reply(REQUEST *request, RADIUS_PACKET *reply)
         *      only for Access-Request, and only if there's a State
         *      attribute in the reply.
         */
-       if (request->home_pool->affinity_group &&
+       if (request->home_pool && request->home_pool->affinity_group &&
            (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;