forked from pool/haproxy
Marcus Rueckert
55e4255fc5
0001-BUG-MAJOR-fix-listening-IP-address-storage-for-front.patch 0002-BUG-MINOR-fix-listening-IP-address-storage-for-front.patch 0003-DOC-Fix-typo-so-fetch-is-properly-parsed-by-Cyril-s-.patch 0004-BUG-MAJOR-http-fix-breakage-of-reqdeny-causing-rando.patch 0005-BUG-MEDIUM-stick-tables-fix-breakage-in-table-conver.patch 0006-BUG-MEDIUM-dns-unbreak-DNS-resolver-after-header-fix.patch 0007-BUILD-fix-build-on-Solaris-11.patch 0008-CLEANUP-connection-fix-double-negation-on-memcmp.patch 0009-BUG-MEDIUM-stats-show-servers-state-may-show-an-serv.patch 0010-BUG-MEDIUM-fix-risk-of-segfault-with-show-tls-keys.patch 0011-BUG-MEDIUM-sticktables-segfault-in-some-configuratio.patch 0012-BUG-MEDIUM-lua-converters-doesn-t-work.patch 0013-BUG-MINOR-http-add-header-header-name-copied-twice.patch 0014-BUG-MEDIUM-http-add-header-buffer-overwritten.patch OBS-URL: https://build.opensuse.org/package/show/server:http/haproxy?expand=0&rev=129
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From d281d68d3aa010f7e1a635c92ab486f7f2c666b9 Mon Sep 17 00:00:00 2001
|
|
From: Thierry Fournier <thierry.fournier@ozon.io>
|
|
Date: Wed, 1 Jun 2016 13:36:20 +0200
|
|
Subject: [PATCH 13/14] BUG/MINOR: http: add-header: header name copied twice
|
|
|
|
The header name is copied two time in the buffer. The first copy is a printf-like
|
|
function writing the name and the http separators in the buffer, and the second
|
|
form is a memcopy. This seems to be inherited from some changes. This patch
|
|
removes the printf like, format.
|
|
|
|
This patch must be backported in 1.6 and 1.5 versions
|
|
(cherry picked from commit 53c1a9b7cb8f3fe79b5492218363b6c0ff608fc1)
|
|
---
|
|
src/proto_http.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/src/proto_http.c b/src/proto_http.c
|
|
index 6eac62b..0d9dd31 100644
|
|
--- a/src/proto_http.c
|
|
+++ b/src/proto_http.c
|
|
@@ -3615,7 +3615,6 @@ resume_execution:
|
|
|
|
case ACT_HTTP_SET_HDR:
|
|
case ACT_HTTP_ADD_HDR:
|
|
- chunk_printf(&trash, "%s: ", rule->arg.hdr_add.name);
|
|
memcpy(trash.str, rule->arg.hdr_add.name, rule->arg.hdr_add.name_len);
|
|
trash.len = rule->arg.hdr_add.name_len;
|
|
trash.str[trash.len++] = ':';
|
|
--
|
|
2.6.6
|
|
|