]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8755 Do not close the default SockBuf a second time
authorOndřej Kuzník <ondra@openldap.org>
Tue, 14 May 2019 11:54:58 +0000 (12:54 +0100)
committerOndřej Kuzník <ondra@mistotebe.net>
Thu, 20 Jun 2019 14:58:25 +0000 (16:58 +0200)
libraries/libldap/unbind.c

index 688e3bf221b4b1d4fccae2e44a87a682042982e2..a390717cac89ab273fda71961ac3d987018b7609 100644 (file)
@@ -131,7 +131,9 @@ ldap_ld_free(
        }
        LDAP_MUTEX_UNLOCK( &ld->ld_res_mutex );
 
-       ber_sockbuf_free( ld->ld_sb );
+       /* Should already be closed by ldap_free_connection which knows not to free
+        * this one */
+       ber_int_sb_destroy( ld->ld_sb );
 
        LDAP_MUTEX_LOCK( &ld->ld_ldopts_mutex );