]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9411 fix thisUpdate check
authorHoward Chu <hyc@openldap.org>
Tue, 1 Dec 2020 18:02:51 +0000 (18:02 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 2 Dec 2020 21:40:51 +0000 (21:40 +0000)
servers/slapd/schema_init.c

index 9049c1878dc6f23b56aabb6ec15c23d82aa1a97a..2780d630e88086c114efa8151c2e6d3bfbf1fc69 100644 (file)
@@ -3885,7 +3885,7 @@ issuerAndThisUpdateCheck(
                                /* empty */;
                        }
 
-                       if ( x.bv_val[0] != '"' ) return LDAP_INVALID_SYNTAX;
+                       if ( !x.bv_len || x.bv_val[0] != '"' ) return LDAP_INVALID_SYNTAX;
                        x.bv_val++;
                        x.bv_len--;