From: Kurt Zeilenga Date: Fri, 1 Sep 2000 01:04:18 +0000 (+0000) Subject: Fix ldap_pvt_tls_start() return value check. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2124 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8983f7cb8b279d1a9ca19294f67afedc19fd4d8d;p=openldap Fix ldap_pvt_tls_start() return value check. --- 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