From: Christophe Jaillet Date: Tue, 18 Mar 2014 06:54:03 +0000 (+0000) Subject: Use 'apr_table_setn' instead of 'apr_table_set' when possible in order to save memory. X-Git-Tag: 2.5.0-alpha~4396 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e69b3ceb08d69c93736c451b9bd45029f235cbb;p=apache Use 'apr_table_setn' instead of 'apr_table_set' when possible in order to save memory. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1578762 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_authnz_fcgi.c b/modules/aaa/mod_authnz_fcgi.c index 9f435d2cb6..2eda35d0b0 100644 --- a/modules/aaa/mod_authnz_fcgi.c +++ b/modules/aaa/mod_authnz_fcgi.c @@ -164,7 +164,7 @@ static void setupenv(request_rec *r, const char *password, const char *apache_ro apr_table_unset(r->subprocess_env, "HTTP_UPGRADE"); /* Connection hop-by-hop header to prevent the CGI from hanging */ - apr_table_set(r->subprocess_env, "HTTP_CONNECTION", "close"); + apr_table_setn(r->subprocess_env, "HTTP_CONNECTION", "close"); } static apr_status_t recv_data(const fcgi_provider_conf *conf,