mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Fix bogus assert.
This commit is contained in:
parent
771a131b0d
commit
4832cc09d3
1 changed files with 6 additions and 2 deletions
|
|
@ -321,13 +321,17 @@ slap_passwd_hash(
|
|||
#endif
|
||||
|
||||
tmp = lutil_passwd_hash( cred , hash );
|
||||
assert( tmp != NULL );
|
||||
|
||||
#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
|
||||
ldap_pvt_thread_mutex_unlock( &passwd_mutex );
|
||||
#endif
|
||||
|
||||
if( tmp == NULL ) {
|
||||
new->bv_len = 0;
|
||||
new->bv_val = NULL;
|
||||
}
|
||||
|
||||
*new = *tmp;
|
||||
free( tmp );
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue