From e807a521f225f1bfe8ad1537f9d891dddc7f5eba Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 26 Mar 2018 16:51:55 +0200 Subject: [PATCH] dnsdist: Fix concat of the console msg length to the error message --- pdns/sodcrypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2