mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#3524 (partial): reinit FDSETs
This commit is contained in:
parent
4b1d72ab2f
commit
96854698cd
1 changed files with 8 additions and 7 deletions
|
|
@ -291,15 +291,16 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s,
|
|||
return rc;
|
||||
}
|
||||
#endif
|
||||
FD_ZERO(&wfds);
|
||||
FD_SET(s, &wfds );
|
||||
|
||||
#ifdef HAVE_WINSOCK
|
||||
FD_ZERO(&efds);
|
||||
FD_SET(s, &efds );
|
||||
#endif
|
||||
|
||||
do {
|
||||
FD_ZERO(&wfds);
|
||||
FD_SET(s, &wfds );
|
||||
|
||||
#ifdef HAVE_WINSOCK
|
||||
FD_ZERO(&efds);
|
||||
FD_SET(s, &efds );
|
||||
#endif
|
||||
|
||||
rc = select(ldap_int_tblsize, z, &wfds,
|
||||
#ifdef HAVE_WINSOCK
|
||||
&efds,
|
||||
|
|
|
|||
Loading…
Reference in a new issue