httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Is this a bug, or am I being stupid?
Date Sun, 15 Oct 1995 17:37:47 GMT
If I have a module which has a server config entry and no dir config creator,
then I get a coredump in http_config.c. The following patch fixes it:

*** ../../apache_0.8.14-ben/src/http_config.c   Tue Sep 19 17:04:59 1995
--- http_config.c       Sun Oct 15 17:53:42 1995
***************
*** 498,503 ****
--- 498,506 ----
            sconfig = (*mod->create_server_config)(parms->pool, parms->server);
            set_module_config (parms->server->module_config, mod, sconfig);
        }
+
+       if(!mconfig)
+         mconfig=sconfig;

        return invoke_cmd (cmd, parms, mconfig, args);
      }

(and displays seemingly correct behaviour). Is this a bug, or did I miss
something?

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant        Fax:   +44 (181) 994 6472
and Technical Director      Email: ben@algroup.co.uk
A.L. Digital Ltd,
London, England.

Mime
View raw message