Skip to content

Commit

Permalink
fix: return correct reply from process_login()
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Apr 14, 2024
1 parent 9ce4c92 commit fc60d26
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ 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())
Expand Down Expand Up @@ -491,7 +493,7 @@ reply client::process_login(std::string_view username, std::string_view password
{
command = make_type_command(transfer_type_);

process_command(command, replies);
reply = process_command(command, replies);
}

return reply;
Expand Down

0 comments on commit fc60d26

Please sign in to comment.