Details
Description
PooledLDAPConnection::refresh schedules a job which validates the wrapped LDAP connection. Under some circumstances, it appears that the pool is able to reap the connection while this job is outstanding, causing a segmentation fault. We should ensure that the connection takes ownership of itself for the duration of the refresh job, just as the TLConnection::refresh method does.