Browse Source

replace inet_addr() by inet_aton() as the man-page on

linux recommends and as solaris likes for SunForte


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@39 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/release-1.3.12
Jan Kneschke 17 years ago
parent
commit
bc7f12ca71
  1. 2
      src/mod_fastcgi.c

2
src/mod_fastcgi.c

@ -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…
Cancel
Save