Unbreak non-DANE build
authorJeremy Harris <jgh146exb@wizmail.org>
Tue, 26 Jun 2018 11:01:15 +0000 (12:01 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 26 Jun 2018 11:01:15 +0000 (12:01 +0100)
Broken-by: afdb5e9cf0
src/src/expand.c

index 596fb240494f46184121d75240d442b472609b38..a1a70c718f9107e4cfe9b7dcc1a4641f0d9d1fb6 100644 (file)
@@ -4981,10 +4981,13 @@ while (*s != 0)
 #ifdef SUPPORT_TLS
        if (do_tls)
          {
-         tls_support tls_dummy = {0};
+         tls_support tls_dummy = {.sni=NULL};
          uschar * errstr;
 
-         if (!(tls_ctx = tls_client_start(fd, &host, NULL, NULL, NULL,
+         if (!(tls_ctx = tls_client_start(fd, &host, NULL, NULL,
+# ifdef SUPPORT_DANE
+                               NULL,
+# endif
                                &tls_dummy, &errstr)))
            {
            expand_string_message = string_sprintf("TLS connect failed: %s", errstr);