On Mon, May 13, 2019 at 03:32:19PM +0000, ondra@mistotebe.net wrote:
Yes, it looks like the main SockBuf closing is run twice, once in ldap_free_connection and once directly in ldap_ld_free. I think we don't enforce that SockBuf implementations set sb_fd != AC_SOCKET_INVALID, so not sure yet if we can gate calling sb_close on that or something else.
I'll see if there's a way to make this work better.
There's a proposed patch at https://github.com/mistotebe/openldap/tree/its8755