diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 269e537a3d..689283f7fd 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -5144,9 +5144,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; }