return;
if (path == NULL)
{
- path = atom_config_get_str (ctx, "cgi", "index");
+ if ((path = atom_config_get_str (ctx, "cgi", "index")) == NULL)
+ {
+ /* We do not want to disclose our configuration is empty.
+ * The requester cannot distinguish an empty configuration
+ * from a non-existent index.
+ */
+ fprintf (stdout, "Status: 404 Not Found\n\n");
+ }
}
if (!strcmp (method, "GET"))
{