]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/unbind.c
fix non-printable flag detection; improve dn test (passes all but last in http:/...
[openldap] / libraries / libldap / unbind.c
index bc19269c3b9bf19e837d11a8a6bfe5819fdd8fbd..b2a35e9c5c0c4877017d8c709c8ade3c2e60440b 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /*  Portions
@@ -131,6 +131,7 @@ ldap_ld_free(
                ld->ld_options.ldo_tm_net = NULL;
        }
 
+#ifdef HAVE_CYRUS_SASL
        if ( ld->ld_options.ldo_def_sasl_mech != NULL ) {
                LDAP_FREE( ld->ld_options.ldo_def_sasl_mech );
                ld->ld_options.ldo_def_sasl_mech = NULL;
@@ -150,13 +151,12 @@ ldap_ld_free(
                LDAP_FREE( ld->ld_options.ldo_def_sasl_authzid );
                ld->ld_options.ldo_def_sasl_authzid = NULL;
        }
+#endif
 
        ber_sockbuf_free( ld->ld_sb );   
    
        LDAP_FREE( (char *) ld );
    
-       WSACleanup();
-
        return( err );
 }