r4289: Close LDAP-Connection before retrying to open a new connection in the
authorGünther Deschner <gd@samba.org>
Mon, 20 Dec 2004 18:42:58 +0000 (18:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:42 +0000 (10:53 -0500)
commitac8032bacff10451fa03f155d43f0d20389512fa
tree201c0303b6ed4a6d0b5492028d0c7427f40b5361
parent721bf50d7446b8ce18bc1d45e17d4214d5a43d26
r4289: Close LDAP-Connection before retrying to open a new connection in the
retry-loop.

This fixes a deadlock-situation when ldapsam is used with the ldapi
interface: getpeername won't fail while trying to detect dead
connections on unix domain sockets. When the ldapi-connection was closed
server-side (due to OpenLDAP's idletimeout) we *never* got a new LDAP
connection.

Guenther
source/lib/smbldap.c