]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Default to Access-Accept response for Status-Server
authorAlan T. DeKok <aland@freeradius.org>
Mon, 2 Nov 2015 23:48:33 +0000 (18:48 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 2 Nov 2015 23:48:33 +0000 (18:48 -0500)
anything else means ignoring the RFC, and ignoring what the
end user really wants

src/main/radclient.c

index 016e56037354285ffaf9c9e3bec2f595121ecd24..d139f471b94c165379fa0f3f42b918a142e16df3 100644 (file)
@@ -626,6 +626,7 @@ static int radclient_init(TALLOC_CTX *ctx, rc_file_pair_t *files)
 
                        case PW_CODE_STATUS_SERVER:
                                switch (radclient_get_code(request->packet->dst_port)) {
+                               default:
                                case PW_CODE_ACCESS_REQUEST:
                                        request->filter_code = PW_CODE_ACCESS_ACCEPT;
                                        break;
@@ -633,12 +634,6 @@ static int radclient_init(TALLOC_CTX *ctx, rc_file_pair_t *files)
                                case PW_CODE_ACCOUNTING_REQUEST:
                                        request->filter_code = PW_CODE_ACCOUNTING_RESPONSE;
                                        break;
-
-                               default:
-                                       REDEBUG("Can't determine expected response to Status-Server request, specify "
-                                               "a well known RADIUS port, or add a Response-Packet-Type attribute "
-                                               "to the request of filter");
-                                       goto error;
                                }
                                break;