summaryrefslogtreecommitdiff
path: root/src/responder
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-01-18 14:52:19 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-01-18 09:27:56 -0500
commit6e24ec9a44cd78cfc6aedc2eff6bfa5e82202411 (patch)
tree1e280bb7d3eb99d18dd862423d1dc615abf782bf /src/responder
parent8270b1b8505e4bce5ec065daa8fcdf985e1fc9f5 (diff)
downloadsssd-6e24ec9a44cd78cfc6aedc2eff6bfa5e82202411.tar.gz
sssd-6e24ec9a44cd78cfc6aedc2eff6bfa5e82202411.tar.bz2
sssd-6e24ec9a44cd78cfc6aedc2eff6bfa5e82202411.zip
PAM: Fix reversed logic
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/pam/pamsrv_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 3b2d509e..4a98dd63 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;
}