From: Howard Chu Date: Mon, 2 Nov 2020 16:01:14 +0000 (+0000) Subject: ITS#9384 remove assert in obsolete csnNormalize23() X-Git-Tag: OPENLDAP_REL_ENG_2_4_56~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdb0d459187522a6063df13871b82ba8dcc6efe2;p=thirdparty%2Fopenldap.git ITS#9384 remove assert in obsolete csnNormalize23() --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 5812bc4b66..ea0d67aa62 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -5327,8 +5327,8 @@ csnNormalize23( } *ptr = '\0'; - assert( ptr == &bv.bv_val[bv.bv_len] ); - if ( csnValidate( syntax, &bv ) != LDAP_SUCCESS ) { + if ( ptr != &bv.bv_val[bv.bv_len] || + csnValidate( syntax, &bv ) != LDAP_SUCCESS ) { return LDAP_INVALID_SYNTAX; }