summaryrefslogtreecommitdiffstats
path: root/authdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'authdb.c')
-rw-r--r--authdb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/authdb.c b/authdb.c
index 77620a3..997e45c 100644
--- a/authdb.c
+++ b/authdb.c
@@ -224,6 +224,11 @@ void authdb_commit_login(void *token, struct authdb_entry *e, time_t now)
authdb_set(token, e);
}
+void authdb_commit_logout(void *token)
+{
+ memset(token, 0, sizeof(struct authdb_entry));
+}
+
void authdb_commit_override(void *token, struct authdb_entry *e, time_t now)
{
struct authdb_entry *mme = token;