From cf3cb2849fde7b6506498810269c8e2707fc8196 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Tue, 8 Dec 2015 06:34:48 +0000 Subject: [PATCH] Constify + save a few bytes in conf pool when parsing SSLRequire git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1718514 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_config.c | 2 +- modules/ssl/ssl_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ssl/ssl_engine_config.c b/modules/ssl/ssl_engine_config.c index 4d790ed03a..aec2f5e475 100644 --- a/modules/ssl/ssl_engine_config.c +++ b/modules/ssl/ssl_engine_config.c @@ -1268,7 +1268,7 @@ const char *ssl_cmd_SSLRequire(cmd_parms *cmd, } require = apr_array_push(dc->aRequirement); - require->cpExpr = apr_pstrdup(cmd->pool, arg); + require->cpExpr = arg; require->mpExpr = info; return NULL; diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h index c217dc3684..a0693e89b0 100644 --- a/modules/ssl/ssl_private.h +++ b/modules/ssl/ssl_private.h @@ -375,7 +375,7 @@ typedef enum { * Define the SSL requirement structure */ typedef struct { - char *cpExpr; + const char *cpExpr; ap_expr_info_t *mpExpr; } ssl_require_t; -- 2.40.0