brianp 2002/09/21 19:26:50
Modified: buckets apr_brigade.c
Log:
apr_brigade_writev fix: don't call brigade flush function if it it's undefined
Revision Changes Path
1.51 +1 -1 apr-util/buckets/apr_brigade.c
Index: apr_brigade.c
===================================================================
RCS file: /home/cvs/apr-util/buckets/apr_brigade.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- apr_brigade.c 21 Sep 2002 23:40:41 -0000 1.50
+++ apr_brigade.c 22 Sep 2002 02:26:50 -0000 1.51
@@ -510,7 +510,7 @@
/* Step 3: if necessary, output the brigade contents now
*/
- if (bytes_written >= APR_BUCKET_BUFF_SIZE) {
+ if (flush && (bytes_written >= APR_BUCKET_BUFF_SIZE)) {
return flush(b, ctx);
}