From 48345b21d0208c9f905e949247283f3333f46588 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Mon, 13 Jun 2011 11:04:29 +0000 Subject: 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 PR: 51358 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135084 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ssl') 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\"", -- cgit v1.2.3