From 367c5e81ba4816d381470622f7a6fdd3ce8809c6 Mon Sep 17 00:00:00 2001 From: Steve Sonntag Date: Thu, 8 Nov 2001 20:08:36 +0000 Subject: [PATCH] Compile error if Cyrus Sasl is not present. Put ifdefs in unbind call around free of sasl data. --- libraries/libldap/unbind.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.39.5