]> granicus.if.org Git - apache/commitdiff
Save a few bytes in conf pool
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 6 Jun 2015 05:35:22 +0000 (05:35 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 6 Jun 2015 05:35:22 +0000 (05:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1683881 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authnz_ldap.c

index 2a0a7c686ca7e018bf1ac8d0a72c9a7a1c752111..5dfebb5ae7b675caccf001d7ce67743f26e484a2 100644 (file)
@@ -1673,7 +1673,7 @@ static const char *set_bind_pattern(cmd_parms *cmd, void *_cfg, const char *exp,
     }
 
     sec->bind_regex = regexp;
-    sec->bind_subst = apr_pstrdup(cmd->pool, subst);
+    sec->bind_subst = subst;
 
     return NULL;
 }
@@ -1701,7 +1701,7 @@ static const char *set_bind_password(cmd_parms *cmd, void *_cfg, const char *arg
         result = ap_get_exec_line(cmd->pool,
                                   (const char*)argv[0], (const char * const *)argv);
 
-        if(!result) {
+        if (!result) {
             return apr_pstrcat(cmd->pool,
                                "Unable to get bind password from exec of ",
                                arg+5, NULL);