From 12ea3e4304e8ffb2b5e53b78dfe326236d68ff53 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 3 Sep 2007 16:36:22 +0000 Subject: [PATCH] check call consistency --- servers/slapd/schema_init.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) ) { -- 2.39.5