summaryrefslogtreecommitdiff
path: root/net/haproxy/files
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2013-10-25 18:04:26 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2013-10-25 18:04:26 +0000
commit214e97973942fce2aa70e3b192b144c173fc8027 (patch)
treed4df834df32172d3d16878e1623b5b063943aa64 /net/haproxy/files
parent- fix plist when option XPM is disabled and PANGOCAIRO is still selected (diff)
Add a patch to fix crash under certain conditions.
http://haproxy.1wt.eu/git?p=haproxy-1.4.git;a=commit;h=d362dc75f3dfa7062e5c2cb7822ad12ffb755389 Submitted by: Rainer Duffner <rainer@ultra-secure.de> Obtained from: project git repository
Diffstat (limited to 'net/haproxy/files')
-rw-r--r--net/haproxy/files/patch-src-session.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/haproxy/files/patch-src-session.c b/net/haproxy/files/patch-src-session.c
new file mode 100644
index 000000000000..051dfcddabd9
--- /dev/null
+++ b/net/haproxy/files/patch-src-session.c
@@ -0,0 +1,15 @@
+--- src/session.c.orig 2013-06-17 17:28:14.000000000 +0400
++++ src/session.c 2013-10-25 22:01:39.000000000 +0400
+@@ -1428,9 +1428,9 @@
+ /* Now we can add the server name to a header (if requested) */
+ /* check for HTTP mode and proxy server_name_hdr_name != NULL */
+ if ((s->flags & SN_BE_ASSIGNED) &&
+- (s->be->mode == PR_MODE_HTTP) &&
+- (s->be->server_id_hdr_name != NULL)) {
+-
++ (s->be->mode == PR_MODE_HTTP) &&
++ (s->be->server_id_hdr_name != NULL) &&
++ (s->srv)) {
+ http_send_name_header(&s->txn,
+ &s->txn.req,
+ s->req,