summaryrefslogtreecommitdiff
path: root/www/flood
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2004-04-07 03:05:52 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2004-04-07 03:05:52 +0000
commit6b56c28606804a8ce30e59b27260e46ed7058914 (patch)
treed411265b9344e6ace42e9e5cc8de4cd147ea53d5 /www/flood
parentUpdate to 1.26. (diff)
Avoid dumping core when post-processing round_robin profile in no-cookie
situation.
Notes
Notes: svn path=/head/; revision=106367
Diffstat (limited to 'www/flood')
-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 */