From: heil Date: Sun, 6 Sep 2015 22:00:45 +0000 (+0200) Subject: haproxy: fixes from upstream X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e51b71ad78350c64ab091cd0fee1efcb5001e0e9;p=feed%2Fpackages.git haproxy: fixes from upstream - [PATCH 05/13] BUG/MINOR: http/sample: gmtime/localtime can fail - [PATCH 06/13] DOC: typo in 'redirect', 302 code meaning - [PATCH 07/13] DOC: mention that %ms is left-padded with zeroes. - [PATCH 08/13] CLEANUP: .gitignore: ignore more test files - [PATCH 09/13] CLEANUP: .gitignore: finally ignore everything but what - [PATCH 10/13] MEDIUM: config: emit a warning on a frontend without - [PATCH 11/13] BUG/MEDIUM: counters: ensure that src_{inc,clr}_gpc0 - [PATCH 12/13] DOC: ssl: missing LF - [PATCH 13/13] DOC: fix example of http-request using Signed-off-by: heil --- diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index 40d6411415..46d392e346 100644 --- a/net/haproxy/Makefile +++ b/net/haproxy/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=haproxy PKG_VERSION:=1.5.14 -PKG_RELEASE:=04 +PKG_RELEASE:=13 PKG_SOURCE:=haproxy-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.5/src/ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) diff --git a/net/haproxy/patches/0005-BUG-MINOR-http-sample-gmtime-localtime-can-fail.patch b/net/haproxy/patches/0005-BUG-MINOR-http-sample-gmtime-localtime-can-fail.patch new file mode 100644 index 0000000000..23012ba0c6 --- /dev/null +++ b/net/haproxy/patches/0005-BUG-MINOR-http-sample-gmtime-localtime-can-fail.patch @@ -0,0 +1,33 @@ +From 955587271031d66e9b7a768e3bb18dae00b60cc6 Mon Sep 17 00:00:00 2001 +From: Thierry FOURNIER +Date: Wed, 8 Jul 2015 00:15:20 +0200 +Subject: [PATCH 05/13] BUG/MINOR: http/sample: gmtime/localtime can fail + +The man said that gmtime() and localtime() can return a NULL value. +This is not tested. It appears that all the values of a 32 bit integer +are valid, but it is better to check the return of these functions. + +However, if the integer move from 32 bits to 64 bits, some 64 values +can be unsupported. +(cherry picked from commit fac9ccfb705702f211f99e67d5f5d5129002086a) +[wt: we only have sample_conv_date() in 1.5] +--- + src/proto_http.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/proto_http.c b/src/proto_http.c +index 5db64b5..02dc42b 100644 +--- a/src/proto_http.c ++++ b/src/proto_http.c +@@ -11249,6 +11249,8 @@ static int sample_conv_http_date(const struct arg *args, struct sample *smp) + curr_date += args[0].data.sint; + + tm = gmtime(&curr_date); ++ if (!tm) ++ return 0; + + temp = get_trash_chunk(); + temp->len = snprintf(temp->str, temp->size - temp->len, +-- +2.4.6 + diff --git a/net/haproxy/patches/0006-DOC-typo-in-redirect-302-code-meaning.patch b/net/haproxy/patches/0006-DOC-typo-in-redirect-302-code-meaning.patch new file mode 100644 index 0000000000..9b962807c8 --- /dev/null +++ b/net/haproxy/patches/0006-DOC-typo-in-redirect-302-code-meaning.patch @@ -0,0 +1,27 @@ +From 6c7351bdd0778bc171a2b54faed058eadc8c9d0d Mon Sep 17 00:00:00 2001 +From: Baptiste Assmann +Date: Mon, 3 Aug 2015 11:42:50 +0200 +Subject: [PATCH 06/13] DOC: typo in 'redirect', 302 code meaning + +302 means a temprary move, not a permanent one +(cherry picked from commit ea849c0cca63b1b56c9c36f9c3504caa5e826816) +--- + doc/configuration.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/configuration.txt b/doc/configuration.txt +index 64697a4..e8d8b2a 100644 +--- a/doc/configuration.txt ++++ b/doc/configuration.txt +@@ -5443,7 +5443,7 @@ redirect scheme [code ]