Fix esi and disable stack protector for all functions.
Not connected to build yet, so no bump.
This commit is contained in:
parent
e5cb9e6e91
commit
184ef52658
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2009/11/30 09:29:30 fgsch Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2009/12/12 17:38:19 fgsch Exp $
|
||||
|
||||
COMMENT = high-performance HTTP accelerator
|
||||
|
||||
@ -26,8 +26,7 @@ MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=varnish/}
|
||||
USE_LIBTOOL = Yes
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
CONFIGURE_ARGS = --enable-stack-protector \
|
||||
--localstatedir=/var
|
||||
CONFIGURE_ARGS = --localstatedir=/var
|
||||
|
||||
REGRESS_TARGET = check
|
||||
|
||||
|
14
www/varnish/patches/patch-bin_varnishd_cache_vrt_esi_c
Normal file
14
www/varnish/patches/patch-bin_varnishd_cache_vrt_esi_c
Normal file
@ -0,0 +1,14 @@
|
||||
Fixes #585: ESI produces wrong backend requests.
|
||||
|
||||
$OpenBSD: patch-bin_varnishd_cache_vrt_esi_c,v 1.1 2009/12/12 17:38:19 fgsch Exp $
|
||||
--- bin/varnishd/cache_vrt_esi.c.orig Sat Dec 12 16:20:24 2009
|
||||
+++ bin/varnishd/cache_vrt_esi.c Sat Dec 12 16:20:39 2009
|
||||
@@ -384,7 +384,7 @@ esi_handle_include(struct esi_work *ew)
|
||||
memcpy(c, val.b, Tlen(val));
|
||||
val.b = c;
|
||||
val.e = val.b + s;
|
||||
- *val.e = '\0';
|
||||
+ val.e[-1] = '\0';
|
||||
}
|
||||
|
||||
if (Tlen(val) > 7 && !memcmp(val.b, "http://", 7)) {
|
Loading…
Reference in New Issue
Block a user