From 8983f7cb8b279d1a9ca19294f67afedc19fd4d8d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 1 Sep 2000 01:04:18 +0000 Subject: [PATCH] Fix ldap_pvt_tls_start() return value check. --- libraries/libldap/open.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 2ae39d4c0f..6f68e25c50 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -317,8 +317,10 @@ ldap_int_open_connection( { rc = ldap_pvt_tls_start( ld, conn->lconn_sb, ld->ld_options.ldo_tls_ctx ); - if (rc != LDAP_SUCCESS) - return rc; + + if (rc != LDAP_SUCCESS) { + return -1; + } } #endif -- 2.39.5