httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1039789 - /httpd/httpd/trunk/modules/metadata/mod_setenvif.c
Date Sat, 27 Nov 2010 23:46:57 GMT
Author: sf
Date: Sat Nov 27 23:46:57 2010
New Revision: 1039789

URL: http://svn.apache.org/viewvc?rev=1039789&view=rev
Log:
Fix segfault on parse error

Modified:
    httpd/httpd/trunk/modules/metadata/mod_setenvif.c

Modified: httpd/httpd/trunk/modules/metadata/mod_setenvif.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_setenvif.c?rev=1039789&r1=1039788&r2=1039789&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/metadata/mod_setenvif.c (original)
+++ httpd/httpd/trunk/modules/metadata/mod_setenvif.c Sat Nov 27 23:46:57 2010
@@ -480,10 +480,10 @@ static const char *add_setenvifexpr(cmd_
     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);
 }



Mime
View raw message