You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1995/10/15 18:37:47 UTC
Is this a bug, or am I being stupid?
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.