From: Howard Chu Date: Wed, 7 Nov 2007 04:59:03 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~457 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18db111c6bed884c88f47511322d0911ab78c14c;p=openldap Fix prev commit --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 6b7668bf56..cc401aefaa 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1572,7 +1572,7 @@ ppolicy_modify( Operation *op, SlapReply *rs ) */ assert( ml->sml_values != NULL ); assert( !BER_BVISNULL( &ml->sml_values[ 0 ] ) ); - if ( !BER_BVISNULL( addmod || &ml->sml_values[ 1 ] ) ) { + if ( addmod || !BER_BVISNULL( &ml->sml_values[ 1 ] ) ) { rs->sr_err = LDAP_CONSTRAINT_VIOLATION; rs->sr_text = "Password policy only allows one password value"; goto return_results;