]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix concat of the console msg length to the error message
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 26 Mar 2018 14:51:55 +0000 (16:51 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 26 Mar 2018 14:51:55 +0000 (16:51 +0200)
pdns/sodcrypto.cc

index 2bdf5beaf27846e65242a918610951d8bbaf651e..f83e19aa72f883032e54455b8bdd8f676cd85cab 100644 (file)
@@ -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);