mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-09 22:04:12 -05:00
Replaced #ifdef'ed ldap_lderrno() call with ldap_get_option() call.
This commit is contained in:
parent
8333a03346
commit
500351993c
1 changed files with 5 additions and 6 deletions
|
|
@ -342,12 +342,11 @@ static int dosearch(
|
|||
}
|
||||
|
||||
if ( ldap_search( ld, base, scope, filter, attrs, attrsonly ) == -1 ) {
|
||||
ldap_perror( ld, "ldap_search" );
|
||||
#ifdef HAVE_LDERRNO
|
||||
return( ldap_lderrno(ld) );
|
||||
#else
|
||||
return( -1 );
|
||||
#endif
|
||||
int ld_errno;
|
||||
ldap_perror( ld, "ldap_search" );
|
||||
|
||||
ldap_get_option(ld, LDAP_OPT_ERROR_NUMBER, &ld_errno);
|
||||
return( ld_errno );
|
||||
}
|
||||
|
||||
matches = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue