Mercurial > hg > freeDiameter
diff extensions/app_radgw/rgwx_acct.c @ 296:e11a9f90a65a
Do not send STR if the auth server sent NO_STATE_MAINTAINED
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 10 May 2010 16:04:42 +0900 |
parents | d4c9fb55ca3a |
children | e203fc0c95e3 |
line wrap: on
line diff
--- a/extensions/app_radgw/rgwx_acct.c Mon May 10 15:45:17 2010 +0900 +++ b/extensions/app_radgw/rgwx_acct.c Mon May 10 16:04:42 2010 +0900 @@ -1087,7 +1087,9 @@ memset(st, 0, sizeof(struct sess_state)); memcpy(&st->req_auth, &rad_req->hdr->authenticator[0], 16); st->auth_appl = auth_appl; - st->send_str = send_str; + if (auth_appl) { /* We use the value 0 for servers which indicated NO STATE MAINTAINED, hence have no need for STR */ + st->send_str = send_str; + } st->term_cause = str_cause; CHECK_FCT( fd_sess_state_store( cs->sess_hdl, session, &st ) ); }