- bug fix

This commit is contained in:
zolliker
2009-02-25 14:42:54 +00:00
parent a0b3939b5b
commit 2006a2cf7d

View File

@ -433,6 +433,7 @@ int ANETinfo(int handle, char *hostname, int hostnameLen)
if (con == NULL) {
return ANETDISCONNECTED;
} else {
len = sizeof sin;
if (getpeername(con->socket, (struct sockaddr *) &sin, &len) < 0) {
return ANETSOCKERROR;
}