From b00f3fa77f8e420b5f9a39c586a9ffe43fb2e25b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 28 Jun 2005 15:58:33 +0000 Subject: [PATCH] fix ITS#3805 --- servers/slapd/passwd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/passwd.c b/servers/slapd/passwd.c index 0917bd2273..db44ffe17a 100644 --- a/servers/slapd/passwd.c +++ b/servers/slapd/passwd.c @@ -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 ); -- 2.39.5