Bug in usocket_recv...

This commit is contained in:
Diego Nehab 2003-06-30 06:10:02 +00:00
parent bd54cd42d4
commit 167727be3c
4 changed files with 62 additions and 52 deletions

View file

@ -177,7 +177,6 @@ const char *inet_tryconnect(p_sock ps, const char *address,
if (!strlen(address) || !inet_aton(address, &remote.sin_addr)) {
struct hostent *hp = gethostbyname(address);
struct in_addr **addr;
remote.sin_family = AF_INET;
if (!hp) return sock_hoststrerror();
addr = (struct in_addr **) hp->h_addr_list;
memcpy(&remote.sin_addr, *addr, sizeof(struct in_addr));