[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #26657] DNS, if host name is "localhost", result is er
From: |
hanhui |
Subject: |
[lwip-devel] [bug #26657] DNS, if host name is "localhost", result is error. |
Date: |
Sun, 24 May 2009 12:14:40 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; MEGAUPLOAD 2.0) |
URL:
<http://savannah.nongnu.org/bugs/?26657>
Summary: DNS, if host name is "localhost", result is error.
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: hanhui03
Submitted on: Sun May 24 12:14:38 2009
Category: sockets
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: 1.3.0
_______________________________________________________
Details:
---------------CODE----------------------
#if LWIP_HAVE_LOOPIF
if (strcmp(hostname,"localhost")==0) {
addr->addr = INADDR_LOOPBACK;
return ERR_OK;
}
#endif /* LWIP_HAVE_LOOPIF */
if (nodename != NULL) {
/* service location specified, try to resolve */
err = netconn_gethostbyname(nodename, &addr);
if (err != ERR_OK) {
return EAI_FAIL;
}
} else {
/* service location specified, use loopback address */
addr.addr = INADDR_LOOPBACK;
}
-----------------------------------------
addr->addr = INADDR_LOOPBACK;
should be
addr->addr = htonl(INADDR_LOOPBACK);
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26657>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #26657] DNS, if host name is "localhost", result is error.,
hanhui <=