From fdfb106b7ce4488bb7e3c1f13d03bb179d68b1dc Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sun, 14 Apr 2024 22:58:18 +0300 Subject: [PATCH] fix: follow-up to fc60d264: revert unrelated changes --- src/client.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index 9f9ca60..00257c1 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -78,13 +78,11 @@ replies client::connect(std::string_view hostname, { reply = process_command("AUTH TLS", replies); - if (reply.is_positive) + if (reply.is_positive()) { - + control_connection_.set_ssl(ssl_context_.get()); + control_connection_.ssl_handshake(); } - - control_connection_.set_ssl(ssl_context_.get()); - control_connection_.ssl_handshake(); } if (username && reply.is_positive())