Skip to content

Commit

Permalink
modules/cdp: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeepee committed Sep 11, 2015
1 parent 00e8c10 commit 8913435
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/cdp/authstatemachine.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8913435

Please sign in to comment.