Skip to content

Commit

Permalink
modules/cdp: update auth session timeout when it is = lifetime as wel…
Browse files Browse the repository at this point in the history
…l...

	- only really makes a difference if grace time = 0
  • Loading branch information
jaybeepee committed Jul 17, 2015
1 parent f2958e5 commit 8cf4696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cdp/authstatemachine.c
Expand Up @@ -107,7 +107,7 @@ void update_auth_session_timers(cdp_auth_session_t *x, AAAMessage *msg) {
default:
x->lifetime = time(0) + auth_lifetime;
}
if (x->timeout != -1 && x->timeout < x->lifetime) x->timeout = x->lifetime + x->grace_period;
if (x->timeout != -1 && x->timeout <= x->lifetime) x->timeout = x->lifetime + x->grace_period;
}
avp = AAAFindMatchingAVP(msg, 0, AVP_Session_Timeout, 0, 0);
if (avp && avp->data.len == 4) {
Expand Down

0 comments on commit 8cf4696

Please sign in to comment.