Compile error if Cyrus Sasl is not present. Put ifdefs in

unbind call around free of sasl data.
This commit is contained in:
Steve Sonntag 2001-11-08 20:08:36 +00:00
parent 8d74b517cd
commit 367c5e81ba

View File

@ -131,6 +131,7 @@ ldap_ld_free(
ld->ld_options.ldo_tm_net = NULL; ld->ld_options.ldo_tm_net = NULL;
} }
#ifdef HAVE_CYRUS_SASL
if ( ld->ld_options.ldo_def_sasl_mech != NULL ) { if ( ld->ld_options.ldo_def_sasl_mech != NULL ) {
LDAP_FREE( ld->ld_options.ldo_def_sasl_mech ); LDAP_FREE( ld->ld_options.ldo_def_sasl_mech );
ld->ld_options.ldo_def_sasl_mech = NULL; ld->ld_options.ldo_def_sasl_mech = NULL;
@ -150,6 +151,7 @@ ldap_ld_free(
LDAP_FREE( ld->ld_options.ldo_def_sasl_authzid ); LDAP_FREE( ld->ld_options.ldo_def_sasl_authzid );
ld->ld_options.ldo_def_sasl_authzid = NULL; ld->ld_options.ldo_def_sasl_authzid = NULL;
} }
#endif
ber_sockbuf_free( ld->ld_sb ); ber_sockbuf_free( ld->ld_sb );