From 6e24ec9a44cd78cfc6aedc2eff6bfa5e82202411 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 18 Jan 2012 14:52:19 +0100 Subject: PAM: Fix reversed logic --- src/responder/pam/pamsrv_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/responder') diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 3b2d509e2..4a98dd638 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -778,7 +778,7 @@ static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd) /* now check user is valid */ if (pd->domain) { preq->domain = responder_get_domain(cctx->rctx->domains, pd->domain); - if (preq->domain) { + if (!preq->domain) { ret = ENOENT; goto done; } -- cgit