mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 14:52:05 -05:00
1ebe49f192
* gnu/packages/web.scm (httpd)[source]: Add patch for CVE-2016-8740. * gnu/packages/patches/httpd-CVE-2016-8740.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
This patch applies against httpd-2.4.23 and shouldn't be needed in later releases
|
|
http://openwall.com/lists/oss-security/2016/12/05/17
|
|
Index: modules/http2/h2_stream.c
|
|
===================================================================
|
|
--- modules/http2/h2_stream.c (revision 1771866)
|
|
+++ modules/http2/h2_stream.c (working copy)
|
|
@@ -322,18 +322,18 @@
|
|
HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE);
|
|
}
|
|
}
|
|
- }
|
|
-
|
|
- if (h2_stream_is_scheduled(stream)) {
|
|
- return h2_request_add_trailer(stream->request, stream->pool,
|
|
- name, nlen, value, vlen);
|
|
- }
|
|
- else {
|
|
- if (!input_open(stream)) {
|
|
- return APR_ECONNRESET;
|
|
+
|
|
+ if (h2_stream_is_scheduled(stream)) {
|
|
+ return h2_request_add_trailer(stream->request, stream->pool,
|
|
+ name, nlen, value, vlen);
|
|
}
|
|
- return h2_request_add_header(stream->request, stream->pool,
|
|
- name, nlen, value, vlen);
|
|
+ else {
|
|
+ if (!input_open(stream)) {
|
|
+ return APR_ECONNRESET;
|
|
+ }
|
|
+ return h2_request_add_header(stream->request, stream->pool,
|
|
+ name, nlen, value, vlen);
|
|
+ }
|
|
}
|
|
}
|
|
|