From: Steve Sonntag Date: Thu, 8 Nov 2001 20:08:36 +0000 (+0000) Subject: Compile error if Cyrus Sasl is not present. Put ifdefs in X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~888 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=367c5e81ba4816d381470622f7a6fdd3ce8809c6;p=openldap Compile error if Cyrus Sasl is not present. Put ifdefs in unbind call around free of sasl data. --- diff --git a/libraries/libldap/unbind.c b/libraries/libldap/unbind.c index bc19269c3b..0d16da652b 100644 --- a/libraries/libldap/unbind.c +++ b/libraries/libldap/unbind.c @@ -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 );