comparison src/core/ngx_resolver.c @ 690:b5b7eea22fda NGINX_1_3_8

nginx 1.3.8 *) Feature: the "optional_no_ca" parameter of the "ssl_verify_client" directive. Thanks to Mike Kazantsev and Eric O'Connor. *) Feature: the $bytes_sent, $connection, and $connection_requests variables can now be used not only in the "log_format" directive. Thanks to Benjamin Grössing. *) Feature: the "auto" parameter of the "worker_processes" directive. *) Bugfix: "cache file ... has md5 collision" alert. *) Bugfix: in the ngx_http_gunzip_filter_module. *) Bugfix: in the "ssl_stapling" directive.
author Igor Sysoev <http://sysoev.ru>
date Tue, 30 Oct 2012 00:00:00 +0400
parents f31b19fe7f48
children
comparison
equal deleted inserted replaced
689:4d942f0d1703 690:b5b7eea22fda
2142 void *dst, *p; 2142 void *dst, *p;
2143 ngx_uint_t j; 2143 ngx_uint_t j;
2144 2144
2145 dst = ngx_resolver_alloc(r, n * sizeof(in_addr_t)); 2145 dst = ngx_resolver_alloc(r, n * sizeof(in_addr_t));
2146 2146
2147 if (dst == NULL) {
2148 return dst;
2149 }
2150
2147 j = ngx_random() % n; 2151 j = ngx_random() % n;
2148 2152
2149 if (j == 0) { 2153 if (j == 0) {
2150 ngx_memcpy(dst, src, n * sizeof(in_addr_t)); 2154 ngx_memcpy(dst, src, n * sizeof(in_addr_t));
2151 return dst; 2155 return dst;