mod_http2/mod_http2-2.0.29-CVE-2026-43951.patch
2026-07-01 13:54:29 -04:00

17 lines
775 B
Diff

diff --git a/mod_http2/h2_c2_filter.c b/mod_http2/h2_c2_filter.c
index 523a941..d770fe9 100644
--- a/mod_http2/h2_c2_filter.c
+++ b/mod_http2/h2_c2_filter.c
@@ -307,10 +307,10 @@ static h2_headers *create_response(request_rec *r)
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;