]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10101 libldap: fix double sb_close when first TLS connection fails
authorFlorin Crișan <florin.crisan@gmail.com>
Wed, 20 Sep 2023 13:06:09 +0000 (16:06 +0300)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 11 Jan 2024 17:56:03 +0000 (17:56 +0000)
libraries/libldap/open.c

index bfdbb2575df19fe2625b59fe998edaf303049b03..93720ebc9143968262929c6db93f6974bb3c02e8 100644 (file)
@@ -543,6 +543,7 @@ ldap_int_open_connection(
                                LDAP_MUTEX_UNLOCK( &lo->ldo_mutex );
                        }
                        ber_int_sb_close( conn->lconn_sb );
+                       ber_int_sb_destroy( conn->lconn_sb );
                        return -1;
                }
        }