- bug fix
This commit is contained in:
@ -433,6 +433,7 @@ int ANETinfo(int handle, char *hostname, int hostnameLen)
|
|||||||
if (con == NULL) {
|
if (con == NULL) {
|
||||||
return ANETDISCONNECTED;
|
return ANETDISCONNECTED;
|
||||||
} else {
|
} else {
|
||||||
|
len = sizeof sin;
|
||||||
if (getpeername(con->socket, (struct sockaddr *) &sin, &len) < 0) {
|
if (getpeername(con->socket, (struct sockaddr *) &sin, &len) < 0) {
|
||||||
return ANETSOCKERROR;
|
return ANETSOCKERROR;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user