From c0eeb2b9b83affec5e9f01ddb27ee81ce34b52b3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 2 Nov 2020 16:01:14 +0000 Subject: [PATCH] ITS#9384 remove assert in obsolete csnNormalize23() --- servers/slapd/schema_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 7d7d1b26d9..cfaf519ea9 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -5401,8 +5401,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; } -- 2.47.3