]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9410 remove assert in csnValidate
authorHoward Chu <hyc@openldap.org>
Mon, 30 Nov 2020 16:42:17 +0000 (16:42 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 30 Nov 2020 16:42:17 +0000 (16:42 +0000)
servers/slapd/schema_init.c

index 269e537a3d46f97af769d3eda1bc42d9dd262c42..689283f7fd8cf965f4984582fabedecc33343f50 100644 (file)
@@ -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;
        }