]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Constify + save a few bytes in conf pool when parsing SSLRequire
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 8 Dec 2015 06:34:48 +0000 (06:34 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 8 Dec 2015 06:34:48 +0000 (06:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1718514 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_config.c
modules/ssl/ssl_private.h

index 4d790ed03ab474bf438550ee57df51b3418c7aa8..aec2f5e475393ec831533e5b89c03a3dd51e1a9d 100644 (file)
@@ -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;
index c217dc3684ca471fccf9c45b52e8fcb902b21710..a0693e89b0cd840f56dbcfdc080f6b9e865f4b19 100644 (file)
@@ -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;