mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix acl_dn_pat bervalization
This commit is contained in:
parent
2f3f7c6765
commit
f2a80ff827
@ -326,10 +326,10 @@ acl_get(
|
|||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "acl", LDAP_LEVEL_DETAIL1,
|
LDAP_LOG(( "acl", LDAP_LEVEL_DETAIL1,
|
||||||
"acl_get: dnpat [%d] %s nsub: %d\n",
|
"acl_get: dnpat [%d] %s nsub: %d\n",
|
||||||
*count, a->acl_dn_pat, (int) a->acl_dn_re.re_nsub ));
|
*count, a->acl_dn_pat.bv_val, (int) a->acl_dn_re.re_nsub ));
|
||||||
#else
|
#else
|
||||||
Debug( LDAP_DEBUG_ACL, "=> dnpat: [%d] %s nsub: %d\n",
|
Debug( LDAP_DEBUG_ACL, "=> dnpat: [%d] %s nsub: %d\n",
|
||||||
*count, a->acl_dn_pat, (int) a->acl_dn_re.re_nsub );
|
*count, a->acl_dn_pat.bv_val, (int) a->acl_dn_re.re_nsub );
|
||||||
#endif
|
#endif
|
||||||
if (regexec(&a->acl_dn_re, e->e_ndn, nmatch, matches, 0))
|
if (regexec(&a->acl_dn_re, e->e_ndn, nmatch, matches, 0))
|
||||||
continue;
|
continue;
|
||||||
@ -338,10 +338,10 @@ acl_get(
|
|||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "acl", LDAP_LEVEL_DETAIL1,
|
LDAP_LOG(( "acl", LDAP_LEVEL_DETAIL1,
|
||||||
"acl_get: dn [%d] %s\n",
|
"acl_get: dn [%d] %s\n",
|
||||||
*count, a->acl_dn_pat ));
|
*count, a->acl_dn_pat.bv_val ));
|
||||||
#else
|
#else
|
||||||
Debug( LDAP_DEBUG_ACL, "=> dn: [%d] %s\n",
|
Debug( LDAP_DEBUG_ACL, "=> dn: [%d] %s\n",
|
||||||
*count, a->acl_dn_pat, 0 );
|
*count, a->acl_dn_pat.bv_val, 0 );
|
||||||
#endif
|
#endif
|
||||||
patlen = a->acl_dn_pat.bv_len;
|
patlen = a->acl_dn_pat.bv_len;
|
||||||
if ( dnlen < patlen )
|
if ( dnlen < patlen )
|
||||||
|
Loading…
Reference in New Issue
Block a user