Fixed bug #26657: DNS, if host name is "localhost", result is error.

This commit is contained in:
goldsimon
2009-08-23 13:51:12 +00:00
parent dea7255fc5
commit 8bf57c0e14
3 changed files with 6 additions and 2 deletions

View File

@@ -300,7 +300,7 @@ lwip_getaddrinfo(const char *nodename, const char *servname,
}
} else {
/* service location specified, use loopback address */
addr.addr = INADDR_LOOPBACK;
addr.addr = htonl(INADDR_LOOPBACK);
}
ai = mem_malloc(sizeof(struct addrinfo));