From 6b56c28606804a8ce30e59b27260e46ed7058914 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Wed, 7 Apr 2004 03:05:52 +0000 Subject: Avoid dumping core when post-processing round_robin profile in no-cookie situation. --- www/flood/Makefile | 7 ++++++- www/flood/files/patch-flood_round_robin.c | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 www/flood/files/patch-flood_round_robin.c (limited to 'www/flood') 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 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 */ -- cgit v1.2.3