From: Wouter Wijngaards Date: Thu, 11 Sep 2008 14:55:50 +0000 (+0000) Subject: fixup. X-Git-Tag: release-1.1.0~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8e30550df45708dea6297b9484d7150e46dd67e;p=thirdparty%2Funbound.git fixup. git-svn-id: file:///svn/unbound/trunk@1231 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/remote.c b/daemon/remote.c index c19c18147..45054bb41 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -64,7 +64,7 @@ log_crypto_err(const char* str) { /* error:[error code]:[library name]:[function name]:[reason string] */ char buf[128]; - int e; + unsigned long e; ERR_error_string_n(ERR_get_error(), buf, sizeof(buf)); log_err("%s crypto %s", str, buf); while( (e=ERR_get_error()) ) { @@ -88,6 +88,10 @@ daemon_remote_create(struct worker* worker) rc->worker = worker; rc->max_active = 10; + if(!cfg->remote_control_enable) { + rc->ctx = NULL; + return rc; + } rc->ctx = SSL_CTX_new(SSLv23_server_method()); if(!rc->ctx) { log_crypto_err("could not SSL_CTX_new");