https://bugs.openldap.org/show_bug.cgi?id=9368
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to dcb314@hotmail.com from comment #0)
Source code is
if (ni->ni_socket >= 0); { if (close(ni->ni_socket))
Suggest drop ;
Looks like this was fixed in master as part of 129dcfbd867605ffc1da31ed90c8316cf7c59523 but overlooked for 2.4.