Module: kamailio
Branch: master
Commit: 8913435fe629e5972fe264e619e493659fc5e010
URL:
https://github.com/kamailio/kamailio/commit/8913435fe629e5972fe264e619e4936…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-09-11T12:14:12+02:00
modules/cdp: remove unused variable
---
Modified: modules/cdp/authstatemachine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8913435fe629e5972fe264e619e4936…
Patch:
https://github.com/kamailio/kamailio/commit/8913435fe629e5972fe264e619e4936…
---
diff --git a/modules/cdp/authstatemachine.c b/modules/cdp/authstatemachine.c
index 33b5690..21f0544 100644
--- a/modules/cdp/authstatemachine.c
+++ b/modules/cdp/authstatemachine.c
@@ -88,7 +88,7 @@ int get_auth_session_state(AAAMessage* msg) {
void update_auth_session_timers(cdp_auth_session_t *x, AAAMessage *msg) {
AAA_AVP *avp;
uint32_t session_timeout = 0, grace_period = 0, auth_lifetime = 0;
- int update_grace = 0, update_timeout = 0, update_lifetime = 0;
+ int update_grace = 0, update_lifetime = 0;
avp = AAAFindMatchingAVP(msg, 0, AVP_Auth_Grace_Period, 0, 0);
if (avp && avp->data.len == 4) {
@@ -129,7 +129,6 @@ void update_auth_session_timers(cdp_auth_session_t *x, AAAMessage
*msg) {
x->lifetime = time(0) + auth_lifetime;
}
if (x->timeout != -1 && x->timeout < x->lifetime) {
- update_timeout = 1;
x->timeout = x->lifetime + x->grace_period;
}
}