httpd/httpd-2.4.63-CVE-2026-43951.patch
2026-07-01 07:22:56 -04:00

17 lines
812 B
Diff

diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c
index 732fb8e..ef24122 100644
--- a/modules/http/http_filters.c
+++ b/modules/http/http_filters.c
@@ -1381,10 +1381,10 @@ static void merge_response_headers(request_rec *r, const char **protocol)
if (!apr_is_empty_array(r->content_languages)) {
int i;
char *token;
- char **languages = (char **)(r->content_languages->elts);
const char *field = apr_table_get(r->headers_out, "Content-Language");
while (field && (token = ap_get_list_item(r->pool, &field)) != NULL) {
+ char **languages = (char **)(r->content_languages->elts);
for (i = 0; i < r->content_languages->nelts; ++i) {
if (!ap_cstr_casecmp(token, languages[i]))
break;