]> git.sur5r.net Git - openldap/commitdiff
Fix ldap_pvt_tls_start() return value check.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 1 Sep 2000 01:04:18 +0000 (01:04 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 1 Sep 2000 01:04:18 +0000 (01:04 +0000)
libraries/libldap/open.c

index 2ae39d4c0f8368b212bc70503dd1dc33b5634887..6f68e25c5055e425efb711b433a48214e0135cf8 100644 (file)
@@ -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