From: Alan T. DeKok Date: Mon, 2 Nov 2015 23:48:33 +0000 (-0500) Subject: Default to Access-Accept response for Status-Server X-Git-Tag: release_3_0_11~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f191fbf1c30ec253eaabad9fb49d57e36400565;p=thirdparty%2Ffreeradius-server.git Default to Access-Accept response for Status-Server anything else means ignoring the RFC, and ignoring what the end user really wants --- diff --git a/src/main/radclient.c b/src/main/radclient.c index 016e5603735..d139f471b94 100644 --- a/src/main/radclient.c +++ b/src/main/radclient.c @@ -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;