From 98ebf1950e960618998fec55954ea207284fb305 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 30 Jun 2009 11:54:45 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/overlays/ppolicy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.39.5