[bug] bug in ngx_http_proxy_module.c version 0.5.31
Manlio Perillo
manlio_perillo at libero.it
Sat Sep 15 00:13:27 MSD 2007
Igor, I have found a possible bug in the proxy module.
The problem is with this piece of code, at line 1139:
if (h->key.len == r->lowcase_index) {
ngx_memcpy(h->lowcase_key, r->lowcase_header, h->key.len);
} else {
for (i = 0; i < h->key.len; i++) {
h->lowcase_key[i] = ngx_tolower(h->lowcase_key[i]);
}
}
When h->key.len != r->lowcase_index h, h->lowcase_key will contain no data.
It should be:
h->lowcase_key[i] = ngx_tolower(h->key.data[i]);
Regards Manlio Perillo
More information about the nginx
mailing list