]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 11 Jan 2020 23:15:28 +0000 (23:15 +0000)
libraries/libldap/open.c

index 4e0f9f8028aaa831b7655aeb0190854c22ce2bb2..cde157b0790821327812264d55493b60e3b4ebe6 100644 (file)
@@ -476,6 +476,7 @@ ldap_int_open_connection(
                                }
                                LDAP_MUTEX_UNLOCK( &lo->ldo_mutex );
                        }
+                       ber_int_sb_close( conn->lconn_sb );
                        return -1;
                }
        }