ITS#4741 fix error check from external password quality module

This commit is contained in:
Howard Chu 2006-11-09 04:06:37 +00:00
parent 6ac62a7573
commit 64a2dbf9d4

View File

@ -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 );