httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54881] segfault with SetEnvIfExpr and SetEnvIf
Date Wed, 24 Apr 2013 11:50:53 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54881

--- Comment #1 from Ruediger Pluem <rpluem@apache.org> ---
Does the following patch solve your issue:

Index: modules/metadata/mod_setenvif.c
===================================================================
--- modules/metadata/mod_setenvif.c     (revision 1471371)
+++ modules/metadata/mod_setenvif.c     (working copy)
@@ -314,7 +314,7 @@
      */
     for (i = 0; i < sconf->conditionals->nelts; ++i) {
         new = &entries[i];
-        if (!strcasecmp(new->name, fname)) {
+        if (new->name && !strcasecmp(new->name, fname)) {
             fname = new->name;
             break;
         }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message