diff --git a/libretroshare/src/pqi/authgpg.cc b/libretroshare/src/pqi/authgpg.cc index 140534d0b..de172af9b 100644 --- a/libretroshare/src/pqi/authgpg.cc +++ b/libretroshare/src/pqi/authgpg.cc @@ -1150,10 +1150,9 @@ bool AuthGPG::loadCertificates() std::string AuthGPG::SaveCertificateToString(std::string id) { - if (!isGPGValid(id)) { + if (!isGPGId(id)) { std::cerr << "AuthGPG::SaveCertificateToString() unknown ID" << std::endl; - std::string emptystr; - return emptystr; + return ""; } RsStackMutex stack(pgpMtx); /******* LOCKED ******/