mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Compile error if Cyrus Sasl is not present. Put ifdefs in
unbind call around free of sasl data.
This commit is contained in:
parent
8d74b517cd
commit
367c5e81ba
@ -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 );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user