replace inet_addr() by inet_aton() as the man-page on
linux recommends and as solaris likes for SunForte git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/trunk@39 152afb58-edef-0310-8abb-c4023f1b3aa9
parent
3e88e04e9a
commit
2a343ae169
|
@ -1423,7 +1423,7 @@ static int fcgi_establish_connection(server *srv, handler_ctx *hctx) {
|
|||
#endif
|
||||
} else {
|
||||
fcgi_addr_in.sin_family = AF_INET;
|
||||
if (INADDR_NONE == (fcgi_addr_in.sin_addr.s_addr = inet_addr(host->host->ptr))) {
|
||||
if (0 == inet_aton(host->host->ptr, &(fcgi_addr_in.sin_addr))) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "sb",
|
||||
"converting IP-adress failed for", host->host,
|
||||
"\nBe sure to specify an IP address here");
|
||||
|
|
Loading…
Reference in New Issue