From: Howard Chu Date: Sat, 15 Dec 2007 00:50:37 +0000 (+0000) Subject: More cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~308 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a7830ff0122deb34b8d6ec6a0c7b617e305b667;p=openldap More cleanup --- diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index b2468aecf4..27715316d1 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -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 ); }