From: Pierangelo Masarati Date: Tue, 28 Jun 2005 15:58:33 +0000 (+0000) Subject: fix ITS#3805 X-Git-Tag: OPENLDAP_AC_BP~495 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b00f3fa77f8e420b5f9a39c586a9ffe43fb2e25b;p=openldap fix ITS#3805 --- 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 );