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

Clean error handling

parent d2b9a491
No related branches found
No related tags found
No related merge requests found
......@@ -241,18 +241,11 @@ static int docompare(
rc = ldap_compare_ext_s( ld, dn, attr, bvalue,
sctrls, cctrls );
if ( rc == -1 ) {
ldap_perror( ld, "ldap_result" );
return( rc );
}
/* if we were told to be quiet, use the return value. */
if ( !quiet ) {
if ( rc == LDAP_COMPARE_TRUE ) {
rc = 0;
printf(_("TRUE\n"));
} else if ( rc == LDAP_COMPARE_FALSE ) {
rc = 0;
printf(_("FALSE\n"));
} else {
ldap_perror( ld, "ldap_compare" );
......
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