From 19af18becbc1404641cf7f323e3cd20a4cd4a27a Mon Sep 17 00:00:00 2001 From: Gene Hightower Date: Wed, 15 May 2024 17:06:39 -0700 Subject: [PATCH] const --- snd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snd.cpp b/snd.cpp index 5e39c49..49c6da4 100644 --- a/snd.cpp +++ b/snd.cpp @@ -1385,8 +1385,8 @@ void do_auth(Input& in, RFC5321::Connection& cnn) } // Perfer PLAIN mechanism. - if (std::find(begin(auth->second), end(auth->second), "PLAIN") != - end(auth->second)) { + if (std::find(cbegin(auth->second), cend(auth->second), "PLAIN") != + cend(auth->second)) { LOG(INFO) << "C: AUTH PLAIN"; auto const tok = fmt::format("\0{}\0{}", FLAGS_username, FLAGS_password); cnn.sock.out() << "AUTH PLAIN " << Base64::enc(tok) << "\r\n" << std::flush; -- 2.11.4.GIT