]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/ppolicy.c
Only return requested attrs in sssvlv response
[openldap] / servers / slapd / overlays / ppolicy.c
index 06aa4580f0f13c80385c69e86ad4e3fd63e928f3..6a693acde27f51c711048e67d7c1a87ab9293803 100644 (file)
@@ -591,13 +591,15 @@ static int
 check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyError *err, Entry *e, char **txt )
 {
        int rc = LDAP_SUCCESS, ok = LDAP_SUCCESS;
-       char *ptr = cred->bv_val;
+       char *ptr;
        struct berval sch;
 
        assert( cred != NULL );
        assert( pp != NULL );
        assert( txt != NULL );
 
+       ptr = cred->bv_val;
+
        *txt = NULL;
 
        if ((cred->bv_len == 0) || (pp->pwdMinLength > cred->bv_len)) {