From: Howard Chu Date: Tue, 30 Jun 2009 11:54:45 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: ACLCHECK_0~469 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=98ebf1950e960618998fec55954ea207284fb305;p=openldap Fix prev commit --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 460d20b82f..10870f3755 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -592,6 +592,9 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE assert( cred != NULL ); assert( pp != NULL ); + assert( txt != NULL ); + + *txt = NULL; if ((cred->bv_len == 0) || (pp->pwdMinLength > cred->bv_len)) { rc = LDAP_CONSTRAINT_VIOLATION; @@ -658,7 +661,6 @@ check_password_quality( struct berval *cred, PassPolicy *pp, LDAPPasswordPolicyE pp->pwdCheckModule, err, 0 ); ok = LDAP_OTHER; } else { - *txt = NULL; ldap_pvt_thread_mutex_lock( &chk_syntax_mutex ); ok = prog( ptr, txt, e ); ldap_pvt_thread_mutex_unlock( &chk_syntax_mutex );