mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
corrected potentially harmful uninitialized memory reads
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1534 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
98eb6b835d
commit
dfeaed705b
@ -1478,12 +1478,13 @@ std::string GPGAuthMgr::SaveCertificateToString(std::string id)
|
||||
std::cerr << "Error export Data";
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
gpgme_data_write (gpgmeData, "", 1); // to be able to convert it into a string
|
||||
|
||||
fflush (NULL);
|
||||
fputs ("Begin Result:\n", stdout);
|
||||
showData (gpgmeData);
|
||||
fputs ("End Result.\n", stdout);
|
||||
|
||||
|
||||
size_t len = 0;
|
||||
char *export_txt = gpgme_data_release_and_get_mem(gpgmeData, &len);
|
||||
tmp = std::string(export_txt);
|
||||
|
@ -78,6 +78,7 @@ p3turtle::p3turtle(p3ConnectMgr *cm,ftServer *fs)
|
||||
|
||||
_last_clean_time = 0 ;
|
||||
_last_tunnel_management_time = 0 ;
|
||||
_last_tunnel_campaign_time = 0 ;
|
||||
}
|
||||
|
||||
int p3turtle::tick()
|
||||
|
Loading…
Reference in New Issue
Block a user