From: Remi Gacogne Date: Mon, 26 Mar 2018 14:51:55 +0000 (+0200) Subject: dnsdist: Fix concat of the console msg length to the error message X-Git-Tag: dnsdist-1.3.0~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6392%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix concat of the console msg length to the error message --- diff --git a/pdns/sodcrypto.cc b/pdns/sodcrypto.cc index 2bdf5beaf2..f83e19aa72 100644 --- a/pdns/sodcrypto.cc +++ b/pdns/sodcrypto.cc @@ -57,7 +57,7 @@ std::string sodDecryptSym(const std::string& msg, const std::string& key, Sodium std::string decrypted; if (msg.length() < crypto_secretbox_MACBYTES) { - throw std::runtime_error("Could not decrypt message of size " + msg.length()); + throw std::runtime_error("Could not decrypt message of size " + std::to_string(msg.length())); } decrypted.resize(msg.length() - crypto_secretbox_MACBYTES);