From 992a20ee0a8600c23536186c2f370d09cc03e7d4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 29 Sep 2009 08:13:25 +0000 Subject: [PATCH] Fix pam_authz result code --- contrib/slapd-modules/nssov/pam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/slapd-modules/nssov/pam.c b/contrib/slapd-modules/nssov/pam.c index a6d7a0eb8c..50e91adc0e 100644 --- a/contrib/slapd-modules/nssov/pam.c +++ b/contrib/slapd-modules/nssov/pam.c @@ -266,7 +266,7 @@ int pam_authz(nssov_info *ni,TFILE *fp,Operation *op) char ruserc[32]; char rhostc[256]; char ttyc[256]; - int rc = NSLCD_PAM_SUCCESS; + int rc; Entry *e = NULL; Attribute *a; SlapReply rs = {REP_RESULT}; @@ -455,6 +455,7 @@ int pam_authz(nssov_info *ni,TFILE *fp,Operation *op) else if (!BER_BVISEMPTY(&ni->ni_pam_template)) uid = ni->ni_pam_template; } + rc = NSLCD_PAM_SUCCESS; finish: WRITE_INT32(fp,NSLCD_VERSION); -- 2.39.5