mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix prev commit
This commit is contained in:
parent
b50f9c7aa9
commit
98ebf1950e
@ -592,6 +592,9 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
||||
|
||||
assert( cred != NULL );
|
||||
assert( pp != NULL );
|
||||
assert( txt != NULL );
|
||||
|
||||
*txt = NULL;
|
||||
|
||||
if ((cred->bv_len == 0) || (pp->pwdMinLength > cred->bv_len)) {
|
||||
rc = LDAP_CONSTRAINT_VIOLATION;
|
||||
@ -658,7 +661,6 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
||||
pp->pwdCheckModule, err, 0 );
|
||||
ok = LDAP_OTHER;
|
||||
} else {
|
||||
*txt = NULL;
|
||||
ldap_pvt_thread_mutex_lock( &chk_syntax_mutex );
|
||||
ok = prog( ptr, txt, e );
|
||||
ldap_pvt_thread_mutex_unlock( &chk_syntax_mutex );
|
||||
|
Loading…
Reference in New Issue
Block a user