From: Pierangelo Masarati Date: Mon, 3 Sep 2007 16:36:22 +0000 (+0000) Subject: check call consistency X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12ea3e4304e8ffb2b5e53b78dfe326236d68ff53;p=openldap check call consistency --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index b5cfcc1bc0..1c2464f1e5 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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 ) ) {