]> git.sur5r.net Git - openldap/commitdiff
check call consistency
authorPierangelo Masarati <ando@openldap.org>
Mon, 3 Sep 2007 16:36:22 +0000 (16:36 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 3 Sep 2007 16:36:22 +0000 (16:36 +0000)
servers/slapd/schema_init.c

index b5cfcc1bc05a73fd0159c57a74dace837d4554ed..1c2464f1e5e4a38b9c6e077d000d847e598bda45 100644 (file)
@@ -3508,6 +3508,9 @@ hexNormalize(
 {
        int     i;
 
+       assert( val != NULL );
+       assert( normalized != NULL );
+
        ber_dupbv_x( normalized, val, ctx );
 
        for ( i = 0; i < normalized->bv_len; i++ ) {
@@ -3803,6 +3806,9 @@ csnNormalize(
        char            *ptr;
        int             i;
 
+       assert( val != NULL );
+       assert( normalized != NULL );
+
        assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage ) != 0 );
 
        if ( BER_BVISEMPTY( val ) ) {