summaryrefslogtreecommitdiffstats
path: root/modules/metadata/mod_setenvif.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-11-28 00:46:57 +0100
committerStefan Fritsch <sf@apache.org>2010-11-28 00:46:57 +0100
commit7ec578bc10e8af94f41e4a78f9f0a772147516b0 (patch)
tree54448b90a1b2237375757cae7c410cc9816ce9b3 /modules/metadata/mod_setenvif.c
parentUpdate. (diff)
downloadapache2-7ec578bc10e8af94f41e4a78f9f0a772147516b0.tar.xz
apache2-7ec578bc10e8af94f41e4a78f9f0a772147516b0.zip
Fix segfault on parse error
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1039789 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata/mod_setenvif.c')
-rw-r--r--modules/metadata/mod_setenvif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/metadata/mod_setenvif.c b/modules/metadata/mod_setenvif.c
index aa8db0b40c..5a3cac2720 100644
--- a/modules/metadata/mod_setenvif.c
+++ b/modules/metadata/mod_setenvif.c
@@ -480,10 +480,10 @@ static const char *add_setenvifexpr(cmd_parms *cmd, void *mconfig,
new->pattern = NULL;
new->preg = NULL;
new->expr = ap_expr_parse_cmd(cmd, expr, &err, NULL);
- new->expr->module_index = setenvif_module.module_index;
if (err)
return apr_psprintf(cmd->pool, "Could not parse expression \"%s\": %s",
expr, err);
+ new->expr->module_index = setenvif_module.module_index;
return add_envvars(cmd, args, new);
}