From 945ce126c58d55b409eb8c4e6eb053953cb8d19e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 16 Apr 2019 21:11:39 -0700 Subject: [PATCH] ircd::net: Remove explicit string conversion. --- ircd/net.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ircd/net.cc b/ircd/net.cc index c6bfd1a1e..4e4c07b6e 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -3384,16 +3384,15 @@ noexcept try if(verify_common_name) { - if(unlikely(empty(common_name(opts)))) + if(unlikely(!common_name(opts))) throw inauthentic { "No common name specified in connection options" }; - //TODO: this object makes an std::string boost::asio::ssl::rfc2818_verification verifier { - std::string(common_name(opts)) + common_name(opts) }; if(!verifier(true, vc))