From: Howard Chu Date: Thu, 12 Oct 2000 15:21:22 +0000 (+0000) Subject: Fix, the TLSVerifyClient option was not evaluated correctly and could never X-Git-Tag: OPENLDAP_REL_ENG_2_0_7~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41b1753c9b2b86e68fd02ecfcc5edae9a72b8e0f;p=thirdparty%2Fopenldap.git Fix, the TLSVerifyClient option was not evaluated correctly and could never be turned off. (It defaults to off, so if you never mentioned it, it would stay off. But if you tried "TLSVerifyClient 0" it would turn on.) --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index a0adcb7728..c736fa7058 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -1080,9 +1080,10 @@ read_config( const char *fname ) if ( rc ) return rc; } else if ( !strcasecmp( cargv[0], "TLSVerifyClient" ) ) { + i = atoi(cargv[1]); rc = ldap_pvt_tls_set_option( NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, - cargv[1] ); + &i ); if ( rc ) return rc;