From 584b2ef57e217e340ed94f36e4af15f46a40f54c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 9 Apr 2011 16:55:00 -0700 Subject: [PATCH] ITS#6898 fix regression from ITS#6625 compound statements need brackets, duh. (cherry picked from commit 9b463b59ec922f5b7682f4ee98c4bc96f5123bd3) --- libraries/libldap/options.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libraries/libldap/options.c b/libraries/libldap/options.c index eec7c6df61..3d940972d6 100644 --- a/libraries/libldap/options.c +++ b/libraries/libldap/options.c @@ -778,19 +778,22 @@ ldap_set_option( default: #ifdef HAVE_TLS - if ( ldap_pvt_tls_set_option( ld, option, (void *)invalue ) == 0 ) + if ( ldap_pvt_tls_set_option( ld, option, (void *)invalue ) == 0 ) { LDAP_MUTEX_UNLOCK( &lo->ldo_mutex ); return ( LDAP_OPT_SUCCESS ); + } #endif #ifdef HAVE_CYRUS_SASL - if ( ldap_int_sasl_set_option( ld, option, (void *)invalue ) == 0 ) + if ( ldap_int_sasl_set_option( ld, option, (void *)invalue ) == 0 ) { LDAP_MUTEX_UNLOCK( &lo->ldo_mutex ); return ( LDAP_OPT_SUCCESS ); + } #endif #ifdef HAVE_GSSAPI - if ( ldap_int_gssapi_set_option( ld, option, (void *)invalue ) == 0 ) + if ( ldap_int_gssapi_set_option( ld, option, (void *)invalue ) == 0 ) { LDAP_MUTEX_UNLOCK( &lo->ldo_mutex ); return ( LDAP_OPT_SUCCESS ); + } #endif /* bad param */ break; /* LDAP_OPT_ERROR */ -- 2.39.5