From: Howard Chu Date: Mon, 30 Nov 2020 16:42:17 +0000 (+0000) Subject: ITS#9410 remove assert in csnValidate X-Git-Tag: OPENLDAP_REL_ENG_2_4_57~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72122b8237237fbe9b993e5fbfc826f4d4c0768d;p=thirdparty%2Fopenldap.git ITS#9410 remove assert in csnValidate --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 5b577607de..9049c1878d 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -5069,9 +5069,8 @@ csnValidate( int rc; assert( in != NULL ); - assert( !BER_BVISNULL( in ) ); - if ( BER_BVISEMPTY( in ) ) { + if ( BER_BVISNULL( in ) || BER_BVISEMPTY( in ) ) { return LDAP_INVALID_SYNTAX; }