Skip to content
Snippets Groups Projects
Commit 3bddc61a authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

clarify macro name: dn_match = 1 if match, 0 otherwise

parent e89d7b12
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ ldap_back_attribute(
LDAP *ld = 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 */
/* attribute and objectclass mapping has already been done */
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
*/
#define dn_cmp(dn1, dn2) \
#define dn_match(dn1, dn2) \
(((dn1)->bv_len == (dn2)->bv_len) \
&& (strcmp((dn1)->bv_val, (dn2)->bv_val) == 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment