From 4832cc09d3feae2896e9373606674ee2d9a84997 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 31 May 2002 20:23:33 +0000 Subject: [PATCH] Fix bogus assert. --- servers/slapd/passwd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.39.5