]> git.sur5r.net Git - openldap/commitdiff
return LDAP_NOT_SUPPORTED when SASL is not available
authorKurt Zeilenga <kurt@openldap.org>
Wed, 21 Dec 2005 22:56:45 +0000 (22:56 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 21 Dec 2005 22:56:45 +0000 (22:56 +0000)
clients/tools/common.c

index 9bd05de7bb0e968a0ae587f2f7d84d724e19481c..c22b49a661099f5676fea1b67a626d6e60ce5d4d 100644 (file)
@@ -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;