]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: Fix non-global ssl=no configuration
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 18 May 2018 14:04:36 +0000 (17:04 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Thu, 23 Aug 2018 11:48:47 +0000 (14:48 +0300)
For example local 127.0.0.2 { ssl=no } wasn't working.

src/login-common/client-common.c

index ba92802052421857203ba9d6bbc40d822cf5c64e..611535cde8734015a0789598c1f8fc4915b7235f 100644 (file)
@@ -474,6 +474,11 @@ int client_init_ssl(struct client *client)
 
        i_assert(client->fd != -1);
 
+       if (strcmp(client->ssl_set->ssl, "no") == 0) {
+               client_log(client, "SSL is disabled (ssl=no)");
+               return -1;
+       }
+
        master_service_ssl_settings_to_iostream_set(client->ssl_set,
                pool_datastack_create(),
                MASTER_SERVICE_SSL_SETTINGS_TYPE_SERVER, &ssl_set);