sec-mod: always mark an active (open) session

Previously it was only marked when an accounting module was present,
though now that we export data to occtl, that information is useful
even without accounting module.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2018-01-06 20:35:20 +01:00
parent 3bdd6bc7dc
commit c027d4165b

View File

@@ -473,10 +473,9 @@ int handle_secm_session_open_cmd(sec_mod_st *sec, int fd, const SecmSessionOpenM
e->status = PS_AUTH_FAILED;
seclog(sec, LOG_INFO, "denied session for user '%s' "SESSION_STR, e->acct_info.username, e->acct_info.safe_id);
return send_failed_session_open_reply(sec, fd);
} else {
e->session_is_open = 1;
}
}
e->session_is_open = 1;
rep.username = e->acct_info.username;
rep.groupname = e->acct_info.groupname;