From: Kurt Zeilenga Date: Thu, 18 Dec 2003 19:30:37 +0000 (+0000) Subject: Clean error handling X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d779da44100b11ddd45361fa39c96d41a8d4fe55;p=openldap Clean error handling --- diff --git a/clients/tools/ldapcompare.c b/clients/tools/ldapcompare.c index df22fc77a8..e9d8d0a01f 100644 --- a/clients/tools/ldapcompare.c +++ b/clients/tools/ldapcompare.c @@ -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" );