Klaus Demo nginx / 43f3aea
fix trailing wildcard when two or more listen used in one server Igor Sysoev 14 years ago
1 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
888888
889889 /* convert "www.example.*" to "www.example\0" */
890890
891 p = key->data;
892 key->data[last] = '\0';
893891 last++;
892
893 p = ngx_palloc(ha->temp_pool, last);
894 if (p == NULL) {
895 return NGX_ERROR;
896 }
897
898 ngx_cpystrn(p, key->data, last - 1);
894899
895900 hwc = &ha->dns_wc_tail;
896901 keys = &ha->dns_wc_tail_hash[k];