diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2018-04-20 21:33:51 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2018-04-20 21:33:51 +0200 |
commit | 917ee6ebdd52f234271cde67fd5043b61d5f7b1e (patch) | |
tree | 1ac3f4fb3d8ad94f30a09b42aa4b48bcf71464b3 /modules/proxy/mod_proxy_ftp.c | |
parent | http: add ap_fgetline() and AP_GETLINE_NONBLOCK flag. (diff) | |
download | apache2-917ee6ebdd52f234271cde67fd5043b61d5f7b1e.tar.xz apache2-917ee6ebdd52f234271cde67fd5043b61d5f7b1e.zip |
Delay some memory allocation.
If this handler will not handle the request, no need to waste bytes in the request pool.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829676 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | modules/proxy/mod_proxy_ftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/proxy/mod_proxy_ftp.c b/modules/proxy/mod_proxy_ftp.c index 38d93f3861..d979e9f9c4 100644 --- a/modules/proxy/mod_proxy_ftp.c +++ b/modules/proxy/mod_proxy_ftp.c @@ -978,7 +978,7 @@ static int proxy_ftp_handler(request_rec *r, proxy_worker *worker, conn_rec *origin, *data = NULL; apr_status_t err = APR_SUCCESS; apr_status_t uerr = APR_SUCCESS; - apr_bucket_brigade *bb = apr_brigade_create(p, c->bucket_alloc); + apr_bucket_brigade *bb; char *buf, *connectname; apr_port_t connectport; char *ftpmessage = NULL; @@ -1211,6 +1211,7 @@ static int proxy_ftp_handler(request_rec *r, proxy_worker *worker, * correct directory... */ + bb = apr_brigade_create(p, c->bucket_alloc); /* possible results: */ /* 120 Service ready in nnn minutes. */ |