X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=ssl.c;h=0df73334cac6c7c3f568294ad812aadab6e1ca16;hb=48282bcd9c6972c177231b66cbad5db7683f2585;hp=afd9af450c193689b22b7cdf87c0be559f513782;hpb=b61d113242ae011a41e56ccc915644ce1716ea88;p=privoxy.git diff --git a/ssl.c b/ssl.c index afd9af45..0df73334 100644 --- a/ssl.c +++ b/ssl.c @@ -325,17 +325,16 @@ extern int create_client_ssl_connection(struct client_state *csp) * certificate and key inconsistence must be locked. */ privoxy_mutex_lock(&certificate_mutex); - ret = generate_host_certificate(csp); + privoxy_mutex_unlock(&certificate_mutex); + if (ret < 0) { log_error(LOG_LEVEL_ERROR, "generate_host_certificate failed: %d", ret); - privoxy_mutex_unlock(&certificate_mutex); ret = -1; goto exit; } - privoxy_mutex_unlock(&certificate_mutex); /* * Seed the RNG