Mailing List Archive

backhand_redirect attempts to free junk pointer
--- mod_backhand.c 2000/03/28 10:15:09 1.1
+++ mod_backhand.c 2000/03/28 10:15:42
@@ -449,7 +449,8 @@
is a race condition that RARELY happens */
int mbcs, size, ssize, tsize, remaining, cl, keepalive, ntries, chunked;
BUFF *myconn;
- char mbcsp_request[MBCSP_REQ_SIZE], *content;
+ char mbcsp_request[MBCSP_REQ_SIZE];
+ char *content = NULL;
struct in_addr tempaddr;
/* Make our decision */
gettimeofday(&start, NULL);
backhand_redirect attempts to free junk pointer [ In reply to ]
I finally noticed one of my bugs before someone else! I fixed this in
1.0.9 (which will come out soon). I am working on setting a anon-cvs
server up in my copious spare time ;)

I was only able to tickle this bug on Alpha architecture for some
reason. Maybe my compiler options... who knows?

Thanks for the patch.

Dmitry Khrustalev wrote:
>
> --- mod_backhand.c 2000/03/28 10:15:09 1.1
> +++ mod_backhand.c 2000/03/28 10:15:42
> - char mbcsp_request[MBCSP_REQ_SIZE], *content;
> + char mbcsp_request[MBCSP_REQ_SIZE];
> + char *content = NULL;

--
Theo Schlossnagle
33131B65/2047/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7