# HG changeset patch # User Sebastien Decugis # Date 1284127817 -32400 # Node ID deb901984ce36da01f2c5b42db40175d93e9e7ed # Parent 616848d6f020d2cc308b81b5c73a9e5975784b23 Remove Message-Authenticator from Accounting-Response because it is not standard and not compatible with many stacks. diff -r 616848d6f020 -r deb901984ce3 extensions/app_radgw/rgw_clients.c --- a/extensions/app_radgw/rgw_clients.c Fri Sep 10 23:03:43 2010 +0900 +++ b/extensions/app_radgw/rgw_clients.c Fri Sep 10 23:10:17 2010 +0900 @@ -840,12 +840,14 @@ return ENOTSUP; } - if (radius_msg_finish_srv(*msg, cli->key.data, cli->key.len, req->radius.hdr->authenticator)) { - TRACE_DEBUG(INFO, "An error occurred while preparing the RADIUS answer"); - radius_msg_free(*msg); - free(*msg); - *msg = NULL; - return EINVAL; + if ((*msg)->hdr->code != RADIUS_CODE_ACCOUNTING_RESPONSE) { + if (radius_msg_finish_srv(*msg, cli->key.data, cli->key.len, req->radius.hdr->authenticator)) { + TRACE_DEBUG(INFO, "An error occurred while preparing the RADIUS answer"); + radius_msg_free(*msg); + free(*msg); + *msg = NULL; + return EINVAL; + } } /* Debug */