From: Jeff Trawick Date: Thu, 28 Sep 2000 22:57:17 +0000 (+0000) Subject: Fix the lifetime of the autodata buffer used for the chunk header. X-Git-Tag: APACHE_2_0_ALPHA_7~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22f4f4488f7984e7023b78edb2c38879bbddcd9d;p=apache Fix the lifetime of the autodata buffer used for the chunk header. Submitted by: Bill Stoddard Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86352 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 14745d1dd1..ab35d2cd9b 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -3008,6 +3008,7 @@ static apr_status_t chunk_filter(ap_filter_t *f, ap_bucket_brigade *b) for (more = NULL; b; b = more, more = NULL) { apr_off_t bytes = 0; ap_bucket *eos = NULL; + char chunk_hdr[20]; /* enough space for the snprintf below */ AP_BRIGADE_FOREACH(e, b) { if (e->type == AP_BUCKET_EOS) { @@ -3055,7 +3056,6 @@ static apr_status_t chunk_filter(ap_filter_t *f, ap_bucket_brigade *b) /* if there are content bytes, then wrap them in a chunk */ if (bytes > 0) { - char chunk_hdr[20]; /* enough space for the snprintf below */ apr_size_t hdr_len; /*