diff --git a/clients/tools/ldapexop.c b/clients/tools/ldapexop.c index f4ecf04d04..27ba39669e 100644 --- a/clients/tools/ldapexop.c +++ b/clients/tools/ldapexop.c @@ -351,5 +351,5 @@ skip: /* disconnect from server */ if ( res ) ldap_msgfree( res ); - tool_exit( ld, code == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE ); + tool_exit( ld, rc ); }