mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Fix ARG_OFFSET to work with overlays
This commit is contained in:
parent
186813daed
commit
1fb33c0e9f
1 changed files with 4 additions and 2 deletions
|
|
@ -315,7 +315,8 @@ int config_set_vals(ConfigTable *Conf, ConfigArgs *c) {
|
|||
return(0);
|
||||
}
|
||||
if(arg_type & ARG_OFFSET) {
|
||||
if (c->be)
|
||||
if (c->be && (!overlay_is_over(c->be) ||
|
||||
((slap_overinfo *)c->be->bd_info)->oi_orig == c->bi))
|
||||
ptr = c->be->be_private;
|
||||
else if (c->bi)
|
||||
ptr = c->bi->bi_private;
|
||||
|
|
@ -406,7 +407,8 @@ config_get_vals(ConfigTable *cf, ConfigArgs *c)
|
|||
if ( rc ) return rc;
|
||||
} else {
|
||||
if ( cf->arg_type & ARG_OFFSET ) {
|
||||
if ( c->be )
|
||||
if (c->be && (!overlay_is_over(c->be) ||
|
||||
((slap_overinfo *)c->be->bd_info)->oi_orig == c->bi))
|
||||
ptr = c->be->be_private;
|
||||
else if ( c->bi )
|
||||
ptr = c->bi->bi_private;
|
||||
|
|
|
|||
Loading…
Reference in a new issue