mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix ITS#3805
This commit is contained in:
parent
8292182db3
commit
b00f3fa77f
@ -510,8 +510,10 @@ static int slapd_crypt( const char *key, const char *salt, char **hash )
|
||||
if ( hash ) {
|
||||
*hash = ber_strdup( cr );
|
||||
rc = LUTIL_PASSWD_OK;
|
||||
|
||||
} else {
|
||||
rc = strcmp( salt, cr ) ? LUTIL_PASSWD_ERR : LUTIL_PASSWD_OK;
|
||||
}
|
||||
rc = strcmp( salt, cr ) ? LUTIL_PASSWD_ERR : LUTIL_PASSWD_OK;
|
||||
}
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &passwd_mutex );
|
||||
|
Loading…
Reference in New Issue
Block a user