diff --git a/clients/tools/common.c b/clients/tools/common.c index 9bd05de7bb..c22b49a661 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -968,9 +968,8 @@ tool_bind( LDAP *ld ) exit( rc ); } #else - fprintf( stderr, "%s: not compiled with SASL support\n", - prog ); - exit( rc ); + fprintf( stderr, "%s: not compiled with SASL support\n", prog ); + exit( LDAP_NOT_SUPPORTED ); #endif } else { int msgid, err, rc;