On Sun, 27 Jan 2002, Bill Stoddard wrote:
> I am getting a seg fault attempting to write bogus buffers to the
> network. apr_brigade_write() appears to be the culprit.
If it's what I think it is, then bummer... I'd have sworn I fixed this bug
ages ago, but apparently the fix never got committed. Does this help?
--Cliff
Index: apr_brigade.c
===================================================================
RCS file: /home/cvs/apr-util/buckets/apr_brigade.c,v
retrieving revision 1.31
diff -u -d -r1.31 apr_brigade.c
--- apr_brigade.c 25 Jan 2002 07:13:43 -0000 1.31
+++ apr_brigade.c 28 Jan 2002 02:55:56 -0000
@@ -362,7 +362,7 @@
e = apr_bucket_transient_create(*str, *n);
}
else {
- e = apr_bucket_heap_create(*str, *n, 0);
+ e = apr_bucket_heap_create(*str, *n, 1);
}
APR_BRIGADE_INSERT_TAIL(bb, e);
return 1;
--------------------------------------------------------------
Cliff Woolley
[EMAIL PROTECTED]
Charlottesville, VA