mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#4741 fix error check from external password quality module
This commit is contained in:
parent
6ac62a7573
commit
64a2dbf9d4
@ -645,13 +645,12 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE
|
||||
ldap_pvt_thread_mutex_lock( &chk_syntax_mutex );
|
||||
ok = prog( cred->bv_val, &txt, e );
|
||||
ldap_pvt_thread_mutex_unlock( &chk_syntax_mutex );
|
||||
if (txt) {
|
||||
if (ok != LDAP_SUCCESS) {
|
||||
Debug(LDAP_DEBUG_ANY,
|
||||
"check_password_quality: module error: (%s) %s.[%d]\n",
|
||||
pp->pwdCheckModule, txt, ok );
|
||||
pp->pwdCheckModule, txt ? txt : "", ok );
|
||||
free(txt);
|
||||
} else
|
||||
ok = LDAP_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
lt_dlclose( mod );
|
||||
|
Loading…
Reference in New Issue
Block a user