Mercurial > hg > freeDiameter
diff extensions/app_radgw/rgwx_auth.c @ 924:877592751fee
Fix (tentative) for invalid handling of sessions fast creation/destruction as pointed by Yusuke Okura -- http://lists.freediameter.net/pipermail/help/2013-February/000584.html and http://lists.freediameter.net/pipermail/help/2013-February/000589.html -- Thank you very much
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Thu, 14 Feb 2013 17:52:57 +0100 |
parents | 4a9f08d6b6ba |
children | 5053f1abcf5d |
line wrap: on
line diff
--- a/extensions/app_radgw/rgwx_auth.c Thu Feb 14 15:58:55 2013 +0100 +++ b/extensions/app_radgw/rgwx_auth.c Thu Feb 14 17:52:57 2013 +0100 @@ -457,7 +457,7 @@ if (si_len) { /* We already have the Session-Id, just use it */ - CHECK_FCT( fd_sess_fromsid ( si, si_len, session, NULL) ); + CHECK_FCT( fd_sess_fromsid_msg ( si, si_len, session, NULL) ); } else { /* Create a new Session-Id string */ @@ -495,6 +495,7 @@ value.os.len = sess_strlen; CHECK_FCT( fd_msg_avp_setvalue ( avp, &value ) ); CHECK_FCT( fd_msg_avp_add ( *diam_fw, MSG_BRW_FIRST_CHILD, avp) ); + CHECK_FCT( fd_msg_sess_set( *diam_fw, *session) ); }