]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9147 plug descriptor leak if ldaps connect fails
authorHoward Chu <hyc@openldap.org>
Sat, 11 Jan 2020 04:16:01 +0000 (04:16 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 11 Jan 2020 04:18:37 +0000 (04:18 +0000)
libraries/libldap/open.c

index feb4235139d74e2f4e79cc89d5b18b452523c93b..d3e4f71d142ea1065c6a71c7bff7a0646ace73f4 100644 (file)
@@ -525,6 +525,7 @@ ldap_int_open_connection(
                                }
                                LDAP_MUTEX_UNLOCK( &lo->ldo_mutex );
                        }
+                       ber_int_sb_close( conn->lconn_sb );
                        return -1;
                }
        }