mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
clarify macro name: dn_match = 1 if match, 0 otherwise
This commit is contained in:
parent
e89d7b1280
commit
3bddc61a2a
@ -41,7 +41,7 @@ ldap_back_attribute(
|
|||||||
LDAP *ld = NULL;
|
LDAP *ld = NULL;
|
||||||
|
|
||||||
*vals = NULL;
|
*vals = NULL;
|
||||||
if (target != NULL && dn_cmp( &target->e_nname, ndn )) {
|
if (target != NULL && dn_match( &target->e_nname, ndn )) {
|
||||||
/* we already have a copy of the entry */
|
/* we already have a copy of the entry */
|
||||||
/* attribute and objectclass mapping has already been done */
|
/* attribute and objectclass mapping has already been done */
|
||||||
if ((attr = attr_find(target->e_attrs, entry_at)) == NULL)
|
if ((attr = attr_find(target->e_attrs, entry_at)) == NULL)
|
||||||
|
@ -352,7 +352,7 @@ LDAP_SLAPD_F (void) connection_internal_close( Connection *conn );
|
|||||||
* dn.c
|
* dn.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define dn_cmp(dn1, dn2) \
|
#define dn_match(dn1, dn2) \
|
||||||
(((dn1)->bv_len == (dn2)->bv_len) \
|
(((dn1)->bv_len == (dn2)->bv_len) \
|
||||||
&& (strcmp((dn1)->bv_val, (dn2)->bv_val) == 0))
|
&& (strcmp((dn1)->bv_val, (dn2)->bv_val) == 0))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user