]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that libunbound can do DNS-over-TLS, when configured.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 24 May 2018 08:57:37 +0000 (08:57 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 24 May 2018 08:57:37 +0000 (08:57 +0000)
git-svn-id: file:///svn/unbound/trunk@4687 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
libunbound/libworker.c

index f00148911bb5f5819971b7986b6da83deed833a9..167e5a33c0e78b90964c144f8d998b7dfe35c3c0 100644 (file)
@@ -1,3 +1,6 @@
+24 May 2018: Wouter
+       - Fix that libunbound can do DNS-over-TLS, when configured.
+
 23 May 2018: Wouter
        - Use accept4 to speed up incoming TCP (and TLS) connections,
          available on Linux and FreeBSD.
index aef1178697f9253392d31a37ab8bc498396149d8..84ac6aed60b4f0771d935f6e299f2c9712ed3bdd 100644 (file)
@@ -158,14 +158,12 @@ libworker_setup(struct ub_ctx* ctx, int is_bg, struct ub_event_base* eb)
                hints_delete(w->env->hints);
                w->env->hints = NULL;
        }
-       if(cfg->ssl_upstream) {
-               w->sslctx = connect_sslctx_create(NULL, NULL,
-                       cfg->tls_cert_bundle);
-               if(!w->sslctx) {
-                       /* to make the setup fail after unlock */
-                       hints_delete(w->env->hints);
-                       w->env->hints = NULL;
-               }
+       w->sslctx = connect_sslctx_create(NULL, NULL,
+               cfg->tls_cert_bundle);
+       if(!w->sslctx) {
+               /* to make the setup fail after unlock */
+               hints_delete(w->env->hints);
+               w->env->hints = NULL;
        }
        if(!w->is_bg || w->is_bg_thread) {
                lock_basic_unlock(&ctx->cfglock);