summaryrefslogtreecommitdiffstats
path: root/modules/ssl/ssl_engine_kernel.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-06-13 13:04:29 +0200
committerStefan Fritsch <sf@apache.org>2011-06-13 13:04:29 +0200
commit48345b21d0208c9f905e949247283f3333f46588 (patch)
tree8f23fe91a83818ecb9c07c77ace30a952bde2136 /modules/ssl/ssl_engine_kernel.c
parentAvoid some memory allocations by using apr_table_setn where the string (diff)
downloadapache2-48345b21d0208c9f905e949247283f3333f46588.tar.xz
apache2-48345b21d0208c9f905e949247283f3333f46588.zip
Avoid some memory allocations by using apr_table_setn where the string arguments
are allocated from the request pool and not modified later on. Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr> PR: 51358 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135084 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/ssl/ssl_engine_kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c
index 3bb5846d76..1ff5d2e63b 100644
--- a/modules/ssl/ssl_engine_kernel.c
+++ b/modules/ssl/ssl_engine_kernel.c
@@ -1042,7 +1042,7 @@ int ssl_hook_UserCheck(request_rec *r)
apr_pstrcat(r->pool, clientdn,
":password", NULL)),
NULL);
- apr_table_set(r->headers_in, "Authorization", auth_line);
+ apr_table_setn(r->headers_in, "Authorization", auth_line);
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
"Faking HTTP Basic Auth header: \"Authorization: %s\"",