mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Cleanup
This commit is contained in:
parent
e66a962401
commit
951159447b
@ -43,8 +43,9 @@
|
||||
void
|
||||
attr_free( Attribute *a )
|
||||
{
|
||||
if ( a->a_nvals && a->a_nvals != a->a_vals )
|
||||
if ( a->a_nvals && a->a_nvals != a->a_vals ) {
|
||||
ber_bvarray_free( a->a_nvals );
|
||||
}
|
||||
ber_bvarray_free( a->a_vals );
|
||||
free( a );
|
||||
}
|
||||
|
@ -1040,7 +1040,9 @@ static int parsePreRead (
|
||||
an[i].an_oc_exclude = 0;
|
||||
rc = slap_bv2ad( &an[i].an_name, &an[i].an_desc, &dummy );
|
||||
if ( rc != LDAP_SUCCESS && ctrl->ldctl_iscritical ) {
|
||||
rs->sr_text = dummy ? dummy : "postread control: unknown attributeType";
|
||||
rs->sr_text = dummy
|
||||
? dummy
|
||||
: "postread control: unknown attributeType";
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
@ -1096,7 +1098,9 @@ static int parsePostRead (
|
||||
an[i].an_oc_exclude = 0;
|
||||
rc = slap_bv2ad( &an[i].an_name, &an[i].an_desc, &dummy );
|
||||
if ( rc != LDAP_SUCCESS && ctrl->ldctl_iscritical ) {
|
||||
rs->sr_text = dummy ? dummy : "postread control: unknown attributeType";
|
||||
rs->sr_text = dummy
|
||||
? dummy
|
||||
: "postread control: unknown attributeType";
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,8 @@ do_search(
|
||||
op->ors_attrs[i].an_desc = NULL;
|
||||
op->ors_attrs[i].an_oc = NULL;
|
||||
op->ors_attrs[i].an_oc_exclude = 0;
|
||||
slap_bv2ad(&op->ors_attrs[i].an_name, &op->ors_attrs[i].an_desc, &dummy);
|
||||
slap_bv2ad(&op->ors_attrs[i].an_name,
|
||||
&op->ors_attrs[i].an_desc, &dummy);
|
||||
}
|
||||
|
||||
if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) {
|
||||
|
Loading…
Reference in New Issue
Block a user