]> granicus.if.org Git - apache/commitdiff
Use 'apr_table_setn' instead of 'apr_table_set' when possible in order to save memory.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 18 Mar 2014 06:54:03 +0000 (06:54 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 18 Mar 2014 06:54:03 +0000 (06:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1578762 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authnz_fcgi.c

index 9f435d2cb632edd86b008e4eebca528339b204f1..2eda35d0b0d895227bd176e4d103cf9db4d86e0e 100644 (file)
@@ -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,