diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 25dfcdf2df..e5046357cb 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -1129,7 +1129,7 @@ static int process_response( if( ldap_msgtype( res ) != LDAP_RES_INTERMEDIATE ) { rc = ldap_result2error( ld, res, 1 ); - if (rc) ldap_perror( ld, opstr ); + if( rc != LDAP_SUCCESS ) ldap_perror( ld, opstr ); return rc; }