mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
be conservative in reading subtree-exclude
This commit is contained in:
parent
df7757b1fb
commit
41f963644c
1 changed files with 4 additions and 3 deletions
|
|
@ -338,9 +338,10 @@ meta_back_db_config(
|
|||
"subtree-exclude DN=\"%s\" "
|
||||
"is suffix of another subtree-exclude\n",
|
||||
fname, lineno, argv[ 1 ] );
|
||||
ber_memfree( mi->mi_targets[ i ].mt_subtree_exclude[ j ].bv_val );
|
||||
mi->mi_targets[ i ].mt_subtree_exclude[ j ] = ndn;
|
||||
return( 0 );
|
||||
/* reject, because it might be superior
|
||||
* to more than one subtree-exclude */
|
||||
ber_memfree( ndn.bv_val );
|
||||
return( 1 );
|
||||
|
||||
} else if ( dnIsSuffix( &ndn, &mi->mi_targets[ i ].mt_subtree_exclude[ j ] ) ) {
|
||||
Debug( LDAP_DEBUG_ANY, "%s: line %d: "
|
||||
|
|
|
|||
Loading…
Reference in a new issue