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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a463ef724c1de3ae0e22f6c028484b47327ea391;p=thirdparty%2Fapache%2Fhttpd.git 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 9f435d2cb63..2eda35d0b0d 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,