mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
eliminated unneeded variable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user