Navigation


Changeset 538:deb901984ce3 in freeDiameter


Ignore:
Timestamp:
Sep 10, 2010, 11:10:17 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Remove Message-Authenticator from Accounting-Response because it is not standard and not compatible with many stacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgw_clients.c

    r530 r538  
    841841        }
    842842       
    843         if (radius_msg_finish_srv(*msg, cli->key.data, cli->key.len, req->radius.hdr->authenticator)) {
    844                 TRACE_DEBUG(INFO, "An error occurred while preparing the RADIUS answer");
    845                 radius_msg_free(*msg);
    846                 free(*msg);
    847                 *msg = NULL;
    848                 return EINVAL;
     843        if ((*msg)->hdr->code != RADIUS_CODE_ACCOUNTING_RESPONSE) {
     844            if (radius_msg_finish_srv(*msg, cli->key.data, cli->key.len, req->radius.hdr->authenticator)) {
     845                    TRACE_DEBUG(INFO, "An error occurred while preparing the RADIUS answer");
     846                    radius_msg_free(*msg);
     847                    free(*msg);
     848                    *msg = NULL;
     849                    return EINVAL;
     850            }
    849851        }
    850852       
Note: See TracChangeset for help on using the changeset viewer.