Give getsockopt() a reference to a socklen_t.
This commit is contained in:
parent
e57daac63b
commit
762db91ef7
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ static void handle_meta_io(void *data, int flags) {
|
|||
if (!socknotconn(sockerrno))
|
||||
socket_error = sockerrno;
|
||||
else {
|
||||
int len = sizeof socket_error;
|
||||
socklen_t len = sizeof socket_error;
|
||||
getsockopt(c->socket, SOL_SOCKET, SO_ERROR, (void *)&socket_error, &len);
|
||||
}
|
||||
if (socket_error) {
|
||||
|
|
Loading…
Reference in a new issue