]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 11 Sep 2008 14:55:50 +0000 (14:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 11 Sep 2008 14:55:50 +0000 (14:55 +0000)
git-svn-id: file:///svn/unbound/trunk@1231 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/remote.c

index c19c18147b3336536d26d48caf28fbbff1ded7d6..45054bb4190340257c2b93b8b50a4cdbc3e58ad2 100644 (file)
@@ -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");