diff options
Diffstat (limited to 'socket_remote.c')
-rw-r--r-- | socket_remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/socket_remote.c b/socket_remote.c index 7ea339a..da77e4c 100644 --- a/socket_remote.c +++ b/socket_remote.c @@ -9,7 +9,7 @@ int socket_remote4(int s,char ip[4],u16 *port) { struct sockaddr_in sa; unsigned int dummy = sizeof sa; - + if (getpeername(s,(struct sockaddr *) &sa,&dummy) == -1) return -1; memcpy(ip,(char *) &sa.sin_addr,4); u16_unpack_big((char *) &sa.sin_port,port); |