securedht: use default max expiration for putEncrypted

This commit is contained in:
Adrien Béraud committed 2016-10-23 17:41:21 -04:00
1 parent 8fa5735745
commit 9b1e85ce80
1 file changed
+1 -1
+1 -1
View File
@@ -350,7 +350,7 @@ SecureDht::putEncrypted(const InfoHash& hash, const InfoHash& to, std::shared_pt
}
DHT_LOG.WARN("Encrypting data for PK: %s", pk->getId().toString().c_str());
try {
put(hash, encrypt(*val, *pk), callback, {}, permanent);
put(hash, encrypt(*val, *pk), callback, time_point::max(), permanent);
} catch (const std::exception& e) {
DHT_LOG.ERR("Error putting encrypted data: %s", e.what());
if (callback)