int -> ber_socklen_t for getsockopt()

This commit is contained in:
Hallvard Furuseth 2007-06-10 20:34:05 +00:00
parent 4586ede1ab
commit 5d083f3859

View File

@ -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 )
{