comparison src/core/ngx_inet.c @ 556:25255878df91 NGINX_0_8_30

nginx 0.8.30 *) Change: now the default buffer size of the "large_client_header_buffers" directive is 8K. Thanks to Andrew Cholakian. *) Feature: the conf/fastcgi.conf for simple FastCGI configurations. *) Bugfix: nginx/Windows tried to rename a temporary file twice if the file should replace an already existent file. *) Bugfix: of "double free or corruption" error issued if host could not be resolved; the bug had appeared in 0.8.22. Thanks to Konstantin Svist. *) Bugfix: in libatomic usage on some platforms. Thanks to W-Mark Kubacki.
author Igor Sysoev <http://sysoev.ru>
date Tue, 15 Dec 2009 00:00:00 +0300
parents c04fa65fe604
children bb20316269e4
comparison
equal deleted inserted replaced
555:f107b2f5d305 556:25255878df91
748 h = gethostbyname((const char *) p); 748 h = gethostbyname((const char *) p);
749 749
750 ngx_free(p); 750 ngx_free(p);
751 751
752 if (h == NULL || h->h_addr_list[0] == NULL) { 752 if (h == NULL || h->h_addr_list[0] == NULL) {
753 ngx_free(p);
754 u->err = "host not found"; 753 u->err = "host not found";
755 return NGX_ERROR; 754 return NGX_ERROR;
756 } 755 }
757 756
758 sin->sin_addr.s_addr = *(in_addr_t *) (h->h_addr_list[0]); 757 sin->sin_addr.s_addr = *(in_addr_t *) (h->h_addr_list[0]);