]> git.sur5r.net Git - openldap/commitdiff
dnMatch must be called with valid args
authorPierangelo Masarati <ando@openldap.org>
Sun, 18 Jul 2004 21:34:01 +0000 (21:34 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 18 Jul 2004 21:34:01 +0000 (21:34 +0000)
servers/slapd/dn.c

index c8d08680419631d1742c39d86047c2bb6eced7b9..44528fa2f63271998e13026268bcd5bc3dc4fb24 100644 (file)
@@ -975,6 +975,8 @@ dnMatch(
        assert( matchp );
        assert( value );
        assert( assertedValue );
+       assert( !BER_BVISNULL( value ) );
+       assert( !BER_BVISNULL( asserted ) );
        
        match = value->bv_len - asserted->bv_len;