mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
int -> ber_socklen_t for getsockopt()
This commit is contained in:
parent
4586ede1ab
commit
5d083f3859
@ -316,7 +316,7 @@ ldap_int_poll(
|
||||
/* This means the connection failed */
|
||||
if ( FD_ISSET(s, &efds) ) {
|
||||
int so_errno;
|
||||
int dummy = sizeof(so_errno);
|
||||
ber_socklen_t dummy = sizeof(so_errno);
|
||||
if ( getsockopt( s, SOL_SOCKET, SO_ERROR,
|
||||
(char *) &so_errno, &dummy ) == AC_SOCKET_ERROR || !so_errno )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user