diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index 60aa94ae3f..7859aa75e3 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -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 ) {