The other places where select() is used in libldap (ldap_int_select()) look fine to me as the fd_set are copied before the select call. So I guess this issue can be regarded as fixed now. -- Ralf