mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fix null pointer to string in authgpg save certificate to string
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2098 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b8450774f5
commit
5fd9dba515
@ -1150,10 +1150,9 @@ bool AuthGPG::loadCertificates()
|
|||||||
std::string AuthGPG::SaveCertificateToString(std::string id)
|
std::string AuthGPG::SaveCertificateToString(std::string id)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!isGPGValid(id)) {
|
if (!isGPGId(id)) {
|
||||||
std::cerr << "AuthGPG::SaveCertificateToString() unknown ID" << std::endl;
|
std::cerr << "AuthGPG::SaveCertificateToString() unknown ID" << std::endl;
|
||||||
std::string emptystr;
|
return "";
|
||||||
return emptystr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RsStackMutex stack(pgpMtx); /******* LOCKED ******/
|
RsStackMutex stack(pgpMtx); /******* LOCKED ******/
|
||||||
|
Loading…
Reference in New Issue
Block a user