aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2004-04-07 11:05:52 +0800
committerkuriyama <kuriyama@FreeBSD.org>2004-04-07 11:05:52 +0800
commit31da143b3331ca640446cb5616929d4b67f568ff (patch)
tree0d739965d00dbdd8309114630a2c5827562d9227 /www
parentfc1c43b0b3a24a0475690b8dcc916b6d9ada7af9 (diff)
downloadfreebsd-ports-gnome-31da143b3331ca640446cb5616929d4b67f568ff.tar.gz
freebsd-ports-gnome-31da143b3331ca640446cb5616929d4b67f568ff.tar.zst
freebsd-ports-gnome-31da143b3331ca640446cb5616929d4b67f568ff.zip
Avoid dumping core when post-processing round_robin profile in no-cookie
situation.
Diffstat (limited to 'www')
-rw-r--r--www/flood/Makefile7
-rw-r--r--www/flood/files/patch-flood_round_robin.c11
2 files changed, 17 insertions, 1 deletions
diff --git a/www/flood/Makefile b/www/flood/Makefile
index 2392619d4d14..e90b41782c44 100644
--- a/www/flood/Makefile
+++ b/www/flood/Makefile
@@ -7,7 +7,7 @@
PORTNAME= flood
PORTVERSION= 0.20031002
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= kuriyama
@@ -45,4 +45,9 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/docs/docbook/* ${DOCSDIR}/docbook
.endif
+ANONCVS= cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic
+
+maint-checkout:
+ ${ANONCVS} co httpd-test/flood
+
.include <bsd.port.mk>
diff --git a/www/flood/files/patch-flood_round_robin.c b/www/flood/files/patch-flood_round_robin.c
new file mode 100644
index 000000000000..17ed1f3c7692
--- /dev/null
+++ b/www/flood/files/patch-flood_round_robin.c
@@ -0,0 +1,11 @@
+--- flood_round_robin.c.orig Wed Apr 7 11:59:12 2004
++++ flood_round_robin.c Wed Apr 7 11:59:42 2004
+@@ -903,7 +903,7 @@
+
+ /* FIXME: This algorithm sucks. I need to be shot for writing such
+ * atrocious code. Grr. */
+- cookieheader = strstr(resp->rbuf, "Set-Cookie: ");
++ cookieheader = strnstr(resp->rbuf, "Set-Cookie: ", resp->rbufsize);
+ if (cookieheader)
+ {
+ /* Point to the value */