From 41b1753c9b2b86e68fd02ecfcc5edae9a72b8e0f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 12 Oct 2000 15:21:22 +0000 Subject: [PATCH] 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.) --- servers/slapd/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;