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

Use ldap_parse_result instead of deprecated ldap_result2error

parent 4b352c57
No related branches found
No related tags found
No related merge requests found
......@@ -671,7 +671,7 @@ static int dosearch(
char *value)
{
char filter[ BUFSIZ ];
int rc, first, matches;
int rc, first, matches, err;
LDAPMessage *res, *e;
if( filtpatt != NULL ) {
......@@ -721,7 +721,8 @@ static int dosearch(
ldap_perror( ld, "ldap_result" );
return( rc );
}
if (( rc = ldap_result2error( ld, res, 0 )) != LDAP_SUCCESS ) {
rc = ldap_parse_result( ld, res, &err, NULL, NULL, NULL, NULL, 0 );
if ( rc != LDAP_SUCCESS || rc != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_search" );
}
if ( sortattr != NULL ) {
......
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