From 3bea01f01d76e1e95a8239c0d3f67073992136a1 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Wed, 14 Dec 2011 07:20:11 -0500 Subject: Don't give memory context in confdb where not needed --- src/responder/sudo/sudosrv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/responder/sudo') diff --git a/src/responder/sudo/sudosrv.c b/src/responder/sudo/sudosrv.c index c8e36adc..137bd327 100644 --- a/src/responder/sudo/sudosrv.c +++ b/src/responder/sudo/sudosrv.c @@ -114,7 +114,7 @@ int sudo_process_init(TALLOC_CTX *mem_ctx, sudo_ctx->rctx->pvt_ctx = sudo_ctx; /* Enable automatic reconnection to the Data Provider */ - ret = confdb_get_int(sudo_ctx->rctx->cdb, sudo_ctx->rctx, + ret = confdb_get_int(sudo_ctx->rctx->cdb, CONFDB_SUDO_CONF_ENTRY, CONFDB_SERVICE_RECON_RETRIES, 3, &max_retries); @@ -132,7 +132,7 @@ int sudo_process_init(TALLOC_CTX *mem_ctx, /* Get responder options */ /* Get cache_timeout option */ - ret = confdb_get_int(sudo_ctx->rctx->cdb, sudo_ctx, + 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); @@ -143,7 +143,7 @@ int sudo_process_init(TALLOC_CTX *mem_ctx, } /* Get sudo_timed option */ - ret = confdb_get_bool(sudo_ctx->rctx->cdb, sudo_ctx, + ret = confdb_get_bool(sudo_ctx->rctx->cdb, CONFDB_SUDO_CONF_ENTRY, CONFDB_SUDO_TIMED, CONFDB_DEFAULT_SUDO_TIMED, &sudo_ctx->timed); -- cgit