]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 7 Nov 2007 04:59:03 +0000 (04:59 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 7 Nov 2007 04:59:03 +0000 (04:59 +0000)
servers/slapd/overlays/ppolicy.c

index 6b7668bf569116fde296617df8875671b6276379..cc401aefaaa6fb69d35db740911063e87a12dd14 100644 (file)
@@ -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;