Skip to content
Snippets Groups Projects
Commit 50035199 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Replaced #ifdef'ed ldap_lderrno() call with ldap_get_option() call.

parent 8333a033
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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