summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c
index c53638a3..cecede01 100644
--- a/src/responder/sudo/sudosrv_get_sudorules.c
+++ b/src/responder/sudo/sudosrv_get_sudorules.c
@@ -133,8 +133,8 @@ static errno_t sudosrv_get_user(struct sudo_dom_ctx *dctx)
/* If cache miss and we haven't checked DP yet OR the entry is
* outdated, go to DP */
- if ((dctx->user->count == 0 && dctx->check_provider) ||
- cache_expire < time(NULL)) {
+ if ((dctx->user->count == 0 || cache_expire < time(NULL))
+ && dctx->check_provider) {
dpreq = sss_dp_get_account_send(cli_ctx, cli_ctx->rctx,
dom, false, SSS_DP_INITGROUPS,
cmd_ctx->username, 0, NULL);