eliminated unneeded variable

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-19 19:29:03 +01:00
parent b8964373c8
commit 2557944bf0
2 changed files with 1 additions and 5 deletions

View File

@@ -358,7 +358,6 @@ int handle_sec_auth_session_cmd(int cfd, sec_mod_st *sec, const SecAuthSessionMs
seclog(sec, LOG_ERR, "could not open session.");
rep.reply = AUTH__REP__FAILED;
} else {
e->have_session = 1;
rep.reply = AUTH__REP__OK;
}
} else {
@@ -632,11 +631,9 @@ void sec_auth_user_deinit(sec_mod_st * sec, client_entry_st * e)
seclog(sec, LOG_DEBUG, "auth deinit for user '%s'", e->username);
if (e->auth_ctx != NULL) {
if (e->have_session) {
if (e->module->close_session)
e->module->close_session(e->auth_ctx, &e->stats);
}
e->module->auth_deinit(e->auth_ctx);
e->auth_ctx = NULL;
e->have_session = 0;
}
}

View File

@@ -52,7 +52,6 @@ typedef struct client_entry_st {
*/
uint8_t sid[SID_SIZE];
void * auth_ctx; /* the context of authentication */
unsigned have_session; /* whether an auth session is initialized */
unsigned in_use; /* counter of users of this structure */
unsigned tls_auth_ok;