The proxy must be created in mworker mode, but only in the worker, not in
the master. The current code creates the proxy in both processes.
The patch only checks that we are not in the master to start the
ocsp-update pre-check.
No backport needed.
*/
static int ssl_ocsp_update_precheck()
{
+
+ /* the ocsp-update is not usable in the master process */
+ if (master)
+ return ERR_NONE;
+
/* initialize the OCSP update dedicated httpclient */
httpclient_ocsp_update_px = httpclient_create_proxy("<OCSP-UPDATE>");
if (!httpclient_ocsp_update_px)