From f140630786827b6405f62a4a8871a48a64325cc5 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 9 Nov 2008 00:03:06 +0100 Subject: [PATCH] Fix segfault in select mode if --uid was given. We must not close tables for non-admissible users. --- user.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/user.c b/user.c index 2798209..497af15 100644 --- a/user.c +++ b/user.c @@ -310,6 +310,9 @@ void close_user_tables(void) if (!ui_used(ui)) continue; + if (!ui->table) + continue; + DEBUG_LOG("closing user table for uid %u\n", (unsigned)ui->uid); ret = osl(osl_close_table(ui->table, OSL_MARK_CLEAN)); if (ret < 0) ERROR_LOG("failed to close user table %u: %s\n", -- 2.39.2