]> git.sur5r.net Git - openldap/commitdiff
ITS#7205 fix check for existing suffix
authorHoward Chu <hyc@openldap.org>
Mon, 26 Mar 2012 10:01:58 +0000 (03:01 -0700)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Mar 2012 10:35:23 +0000 (03:35 -0700)
servers/slapd/bconfig.c

index 9326185e10599784809804d5c37cb8282a4547f9..ae2e76fd9233ccb0030e09c34e1bd0aaa62ff53b 100644 (file)
@@ -3070,7 +3070,8 @@ config_suffix(ConfigArgs *c)
        }
 #endif
 
-       if (SLAP_DB_ONE_SUFFIX( c->be ) && c->be->be_suffix ) {
+       if (SLAP_DB_ONE_SUFFIX( c->be ) && c->be->be_suffix &&
+               !BER_BVISNULL( &c->be->be_suffix[0] )) {
                snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> Only one suffix is allowed on this %s backend",
                        c->argv[0], c->be->bd_info->bi_type );
                Debug(LDAP_DEBUG_ANY, "%s: %s\n",