From: Howard Chu Date: Tue, 29 Sep 2009 08:13:25 +0000 (+0000) Subject: Fix pam_authz result code X-Git-Tag: ACLCHECK_0~204 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=992a20ee0a8600c23536186c2f370d09cc03e7d4;p=openldap Fix pam_authz result code --- 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);