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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e807a521f225f1bfe8ad1537f9d891dddc7f5eba;p=pdns dnsdist: Fix concat of the console msg length to the error message --- diff --git a/pdns/sodcrypto.cc b/pdns/sodcrypto.cc index 2bdf5beaf..f83e19aa7 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);