]> git.sur5r.net Git - openldap/commitdiff
Compile error if Cyrus Sasl is not present. Put ifdefs in
authorSteve Sonntag <vtag@openldap.org>
Thu, 8 Nov 2001 20:08:36 +0000 (20:08 +0000)
committerSteve Sonntag <vtag@openldap.org>
Thu, 8 Nov 2001 20:08:36 +0000 (20:08 +0000)
unbind call around free of sasl data.

libraries/libldap/unbind.c

index bc19269c3b9bf19e837d11a8a6bfe5819fdd8fbd..0d16da652b8705c864955075af38d719b1b1f094 100644 (file)
@@ -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,6 +151,7 @@ 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 );