Commit 70e7d58c authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

small improvement and prototyping

parent 1f8e4d38
......@@ -819,7 +819,6 @@ rdn_attrs( const char * rdn, char ***types, char ***values)
int rc;
assert( rdn );
assert( types );
assert( values );
rc = ldap_str2rdn( rdn, &tmpRDN, &p, LDAP_DN_FORMAT_LDAP );
......@@ -834,8 +833,10 @@ rdn_attrs( const char * rdn, char ***types, char ***values)
assert( ava->la_attr );
assert( ava->la_value );
charray_add_n( types, ava->la_attr->bv_val,
ava->la_attr->bv_len );
if ( types ) {
charray_add_n( types, ava->la_attr->bv_val,
ava->la_attr->bv_len );
}
charray_add_n( values, ava->la_value->bv_val,
ava->la_value->bv_len );
}
......
......@@ -373,6 +373,9 @@ LDAP_SLAPD_F (int) dnMatch LDAP_P((
LDAP_SLAPD_F (int) dnIsSuffix LDAP_P((
const struct berval *dn, const struct berval *suffix ));
LDAP_SLAPD_F (int) dnExtractRdn LDAP_P((
const char *dn, struct berval **rdn ));
LDAP_SLAPD_F (int) rdnValidate LDAP_P(( struct berval * rdn ));
#define SLAP_DN_MIGRATION
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment