[sr-dev] git:master:8cf4696b: modules/cdp: update auth session timeout when it is = lifetime as well...
jaybeepee
jason.penton at gmail.com
Fri Jul 17 12:28:55 CEST 2015
Module: kamailio
Branch: master
Commit: 8cf4696b66fe9475a125b520c8dcb7f96e264ecd
URL: https://github.com/kamailio/kamailio/commit/8cf4696b66fe9475a125b520c8dcb7f96e264ecd
Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at 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/8cf4696b66fe9475a125b520c8dcb7f96e264ecd.diff
Patch: https://github.com/kamailio/kamailio/commit/8cf4696b66fe9475a125b520c8dcb7f96e264ecd.patch
---
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) {
More information about the sr-dev
mailing list