]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 2 Dec 2020 21:39:50 +0000 (21:39 +0000)
servers/slapd/schema_init.c

index 5b577607dea36fe2e4f896e81256590f12e6718b..9049c1878dc6f23b56aabb6ec15c23d82aa1a97a 100644 (file)
@@ -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;
        }