comparison src/core/ngx_hash.c @ 330:5e3b425174f6 NGINX_0_6_9

nginx 0.6.9 *) Bugfix: a worker process may got caught in an endless loop, if the HTTPS protocol was used; bug appeared in 0.6.7. *) Bugfix: if server listened on two addresses or ports and trailing wildcard was used, then nginx did not run. *) Bugfix: the "ip_hash" directive might incorrectly mark servers as down. *) Bugfix: nginx could not be built on amd64; bug appeared in 0.6.8.
author Igor Sysoev <http://sysoev.ru>
date Tue, 28 Aug 2007 00:00:00 +0400
parents 429900ca25ee
children 1c519aff5c0c
comparison
equal deleted inserted replaced
329:f2f8dc3e7933 330:5e3b425174f6
887 887
888 } else { 888 } else {
889 889
890 /* convert "www.example.*" to "www.example\0" */ 890 /* convert "www.example.*" to "www.example\0" */
891 891
892 p = key->data;
893 key->data[last] = '\0';
894 last++; 892 last++;
893
894 p = ngx_palloc(ha->temp_pool, last);
895 if (p == NULL) {
896 return NGX_ERROR;
897 }
898
899 ngx_cpystrn(p, key->data, last - 1);
895 900
896 hwc = &ha->dns_wc_tail; 901 hwc = &ha->dns_wc_tail;
897 keys = &ha->dns_wc_tail_hash[k]; 902 keys = &ha->dns_wc_tail_hash[k];
898 } 903 }
899 904