From b95c6b5485eee5f45f62f87df77c9178857d625e Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Mon, 23 Apr 2012 09:10:08 +0200 Subject: sudo responder: discard in-memory cache --- src/responder/sudo/sudosrv.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/responder/sudo/sudosrv.c') diff --git a/src/responder/sudo/sudosrv.c b/src/responder/sudo/sudosrv.c index 6e609cda..b4f8f887 100644 --- a/src/responder/sudo/sudosrv.c +++ b/src/responder/sudo/sudosrv.c @@ -131,17 +131,6 @@ int sudo_process_init(TALLOC_CTX *mem_ctx, /* Get responder options */ - /* Get cache_timeout option */ - ret = confdb_get_int(sudo_ctx->rctx->cdb, - CONFDB_SUDO_CONF_ENTRY, CONFDB_SUDO_CACHE_TIMEOUT, - CONFDB_DEFAULT_SUDO_CACHE_TIMEOUT, - &sudo_ctx->cache_timeout); - if (ret != EOK) { - DEBUG(SSSDBG_FATAL_FAILURE, ("Error reading from confdb (%d) [%s]\n", - ret, strerror(ret))); - return ret; - } - /* Get sudo_timed option */ ret = confdb_get_bool(sudo_ctx->rctx->cdb, CONFDB_SUDO_CONF_ENTRY, CONFDB_SUDO_TIMED, @@ -153,14 +142,6 @@ int sudo_process_init(TALLOC_CTX *mem_ctx, return ret; } - /* Initialize in-memory cache */ - ret = sudosrv_cache_init(sudo_ctx, 10, &sudo_ctx->cache); - if (ret != EOK) { - DEBUG(SSSDBG_FATAL_FAILURE, - ("Could not create hash table: [%s]", strerror(ret))); - return ret; - } - DEBUG(SSSDBG_TRACE_FUNC, ("SUDO Initialization complete\n")); return EOK; -- cgit