Fix esi and disable stack protector for all functions.

Not connected to build yet, so no bump.
This commit is contained in:
fgsch 2009-12-12 17:38:19 +00:00
parent e5cb9e6e91
commit 184ef52658
2 changed files with 16 additions and 3 deletions

View File

@ -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

View 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)) {