diff options
Diffstat (limited to 'src/inet.c')
-rw-r--r-- | src/inet.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -177,7 +177,6 @@ const char *inet_tryconnect(p_sock ps, const char *address, | |||
177 | if (!strlen(address) || !inet_aton(address, &remote.sin_addr)) { | 177 | if (!strlen(address) || !inet_aton(address, &remote.sin_addr)) { |
178 | struct hostent *hp = gethostbyname(address); | 178 | struct hostent *hp = gethostbyname(address); |
179 | struct in_addr **addr; | 179 | struct in_addr **addr; |
180 | remote.sin_family = AF_INET; | ||
181 | if (!hp) return sock_hoststrerror(); | 180 | if (!hp) return sock_hoststrerror(); |
182 | addr = (struct in_addr **) hp->h_addr_list; | 181 | addr = (struct in_addr **) hp->h_addr_list; |
183 | memcpy(&remote.sin_addr, *addr, sizeof(struct in_addr)); | 182 | memcpy(&remote.sin_addr, *addr, sizeof(struct in_addr)); |