Skip to content
Snippets Groups Projects
Commit 367c5e81 authored by Steve Sonntag's avatar Steve Sonntag
Browse files

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

unbind call around free of sasl data.
parent 8d74b517
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment