]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
further simplifications
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Mar 2023 20:36:11 +0000 (16:36 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 22 Mar 2023 15:11:34 +0000 (11:11 -0400)
src/process/radius/base.c

index fa5eaae96d93981bfbb3af80ebec317158357497..28ac69c42aa02499e49a575872205209743e0f4c 100644 (file)
@@ -412,9 +412,7 @@ RESUME(access_request)
                return CALL_SEND_STATE(state);
        }
 
-       if (request->reply->code == FR_RADIUS_CODE_DO_NOT_RESPOND) {
-               RDEBUG("The 'recv Access-Request' section returned %s - not sending a response",
-                      fr_table_str_by_value(rcode_table, rcode, "<INVALID>"));
+       if (request->reply->code) {
                goto send_reply;
        }
 
@@ -425,13 +423,10 @@ RESUME(access_request)
                vp = fr_pair_find_by_da(&request->reply_pairs, NULL, attr_packet_type);
                if (vp && FR_RADIUS_PROCESS_CODE_VALID(vp->vp_uint32)) {
                        request->reply->code = vp->vp_uint32;
+                       goto send_reply;
                }
        }
 
-       if (request->reply->code) {
-               goto send_reply;
-       }
-
        /*
         *      Run authenticate foo { ... }
         *