From: Kurt Zeilenga Date: Fri, 31 May 2002 20:23:33 +0000 (+0000) Subject: Fix bogus assert. X-Git-Tag: OPENLDAP_REL_ENG_2_MP~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4832cc09d3feae2896e9373606674ee2d9a84997;p=openldap Fix bogus assert. --- diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index 3a8ddd9c1d..94cbeac0cf 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -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; }