]> git.sur5r.net Git - openldap/commitdiff
assert expects int. (int)<nonnull ptr> can be 0. Use assert(arg!=NULL).
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 11 Jan 2007 12:03:20 +0000 (12:03 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 11 Jan 2007 12:03:20 +0000 (12:03 +0000)
servers/slapd/overlays/ppolicy.c

index cd40a9df02aadb60e8d02ecd9532552265e9e4d9..48ecf6821905b65532addd5839c03fb4f7219008 100644 (file)
@@ -1282,7 +1282,7 @@ ppolicy_add(
        if ((pa = attr_find( op->oq_add.rs_e->e_attrs,
                slap_schema.si_ad_userPassword )))
        {
-               assert( pa->a_vals );
+               assert( pa->a_vals != NULL );
                assert( !BER_BVISNULL( &pa->a_vals[ 0 ] ) );
 
                if ( !BER_BVISNULL( &pa->a_vals[ 1 ] ) ) {