robh:
> I think this was fixed in 0.8.14, if not...
> > Symptoms:
> > --
> > In util.c:get_virthost_addr() if : hep = gethostbyname(w); returns NULL the following code core dumps. This happens when a virtual host in httpd.conf is garbage.
> > --
> >
> > Backtrace:
0.8.14 carries the following code:
...
hep = gethostbyname(w);
if ((!hep) || (hep->h_addrtype != AF_INET || !hep->h_addr_list[0])) {
fprintf (stderr, "Cannot resolve host name %s --- exiting!\n", w);
exit(1);
}
...
Which catches the bug.
Ay.
> I think this was fixed in 0.8.14, if not...
> > Symptoms:
> > --
> > In util.c:get_virthost_addr() if : hep = gethostbyname(w); returns NULL the following code core dumps. This happens when a virtual host in httpd.conf is garbage.
> > --
> >
> > Backtrace:
0.8.14 carries the following code:
...
hep = gethostbyname(w);
if ((!hep) || (hep->h_addrtype != AF_INET || !hep->h_addr_list[0])) {
fprintf (stderr, "Cannot resolve host name %s --- exiting!\n", w);
exit(1);
}
...
Which catches the bug.
Ay.