]> git.sur5r.net Git - openldap/commitdiff
More cleanup
authorHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2007 00:50:37 +0000 (00:50 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2007 00:50:37 +0000 (00:50 +0000)
servers/slapd/overlays/translucent.c

index b2468aecf40faf4d4a94db3080ca6aaf12ceb5f9..27715316d143b1083fdad2c46062378bf3a66fb2 100644 (file)
@@ -94,7 +94,8 @@ static ConfigOCs translucentocs[] = {
          "NAME 'olcTranslucentConfig' "
          "DESC 'Translucent configuration' "
          "SUP olcOverlayConfig "
-         "MAY ( olcTranslucentStrict $ olcTranslucentNoGlue ) )",
+         "MAY ( olcTranslucentStrict $ olcTranslucentNoGlue $"
+         " olcTranslucentLocal $ olcTranslucentRemote ) )",
          Cft_Overlay, translucentcfg, NULL, translucent_cfadd },
        { "( OLcfgOvOc:14.2 "
          "NAME 'olcTranslucentDatabase' "
@@ -182,6 +183,8 @@ translucent_cf_gen( ConfigArgs *c )
                an = &ov->remote;
 
        if ( c->op == SLAP_CONFIG_EMIT ) {
+               if ( !*an )
+                       return 1;
                for ( i = 0; !BER_BVISNULL(&(*an)[i].an_name); i++ ) {
                        value_add_one( &c->rvalue_vals, &(*an)[i].an_name );
                }