diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2011-12-14 07:20:11 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-21 21:28:49 -0500 |
commit | 3bea01f01d76e1e95a8239c0d3f67073992136a1 (patch) | |
tree | 5da8c3f66905726489fcffba5934db221f6dbed4 /src/responder/sudo | |
parent | 3e5caddf4840e40b49ccf24e1ce7b531a692023b (diff) | |
download | sssd-3bea01f01d76e1e95a8239c0d3f67073992136a1.tar.gz sssd-3bea01f01d76e1e95a8239c0d3f67073992136a1.tar.bz2 sssd-3bea01f01d76e1e95a8239c0d3f67073992136a1.zip |
Don't give memory context in confdb where not needed
Diffstat (limited to 'src/responder/sudo')
-rw-r--r-- | src/responder/sudo/sudosrv.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |