From 87ea7c341b58e52e73ba4b821a1ea3f8804ee89f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 18 May 2018 17:04:36 +0300 Subject: [PATCH] *-login: Fix non-global ssl=no configuration For example local 127.0.0.2 { ssl=no } wasn't working. --- src/login-common/client-common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/login-common/client-common.c b/src/login-common/client-common.c index ba92802052..611535cde8 100644 --- a/src/login-common/client-common.c +++ b/src/login-common/client-common.c @@ -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); -- 2.47.3