mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Clean up at_find
This commit is contained in:
parent
57deefc94f
commit
f1d0813562
@ -74,23 +74,12 @@ at_find(
|
||||
const char *name
|
||||
)
|
||||
{
|
||||
struct aindexrec *air;
|
||||
char *tmpname;
|
||||
struct aindexrec *air;
|
||||
|
||||
{
|
||||
tmpname = (char *)name;
|
||||
}
|
||||
air = (struct aindexrec *) avl_find( attr_index, name,
|
||||
(AVL_CMP) attr_index_name_cmp );
|
||||
|
||||
if ( (air = (struct aindexrec *) avl_find( attr_index, tmpname,
|
||||
(AVL_CMP) attr_index_name_cmp )) != NULL ) {
|
||||
if ( tmpname != name )
|
||||
ldap_memfree( tmpname );
|
||||
return( air->air_at );
|
||||
}
|
||||
|
||||
if ( tmpname != name )
|
||||
ldap_memfree( tmpname );
|
||||
return( NULL );
|
||||
return air != NULL ? air->air_at : NULL;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user