Mercurial > hg > freeDiameter
changeset 538:deb901984ce3
Remove Message-Authenticator from Accounting-Response because it is not standard and not compatible with many stacks.
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 10 Sep 2010 23:10:17 +0900 |
parents | 616848d6f020 |
children | 6994e9a3c528 |
files | extensions/app_radgw/rgw_clients.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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 */