cherokee/webserver — pull request #1065 by skinkie (2014-01-02 02:15:22+00:00)
Title: Wrong configuration segmentionfault

In issue #356 I have described a way to alter the configuration file which caused a segmentation fault in the webserver. This segmentation fault origins from the fact that if a configuration phase is broken off, the properties of the handler will be freed. If the properties are on the other hand never initialised this will case badness in some (very) minor locations.

My solution vector is to first initialise the base class, so everything is set up to be "potentially" freed, just in case. Then the configuration phase hits in.

Specially review the handler_proxy.c code where I move the initialisation of the proxy hosts, to a different location, and I wonder if that is a good idea ...or not.

(I notice some commits are unrelated here)