]> git.sur5r.net Git - openldap/commitdiff
Fix pam_authz result code
authorHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2009 08:13:25 +0000 (08:13 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2009 08:13:25 +0000 (08:13 +0000)
contrib/slapd-modules/nssov/pam.c

index a6d7a0eb8c3b00bc21f4f411bf2f785d58a27806..50e91adc0e07fee3285142bb9e406dbd0567cea8 100644 (file)
@@ -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);