Module: kamailio
Branch: master
Commit: 8cf4696b66fe9475a125b520c8dcb7f96e264ecd
URL:
https://github.com/kamailio/kamailio/commit/8cf4696b66fe9475a125b520c8dcb7f…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-07-17T12:27:48+02:00
modules/cdp: update auth session timeout when it is = lifetime as well...
- only really makes a difference if grace time = 0
---
Modified: modules/cdp/authstatemachine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8cf4696b66fe9475a125b520c8dcb7f…
Patch:
https://github.com/kamailio/kamailio/commit/8cf4696b66fe9475a125b520c8dcb7f…
---
diff --git a/modules/cdp/authstatemachine.c b/modules/cdp/authstatemachine.c
index be8cbaf..462065d 100644
--- a/modules/cdp/authstatemachine.c
+++ b/modules/cdp/authstatemachine.c
@@ -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) {