mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 01:31:30 -05:00
fix a bug when removing 1 from a zero siglen
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1817 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5a2dbc4bdf
commit
874d9f45fa
@ -1163,7 +1163,7 @@ bool GPGAuthMgr::VerifySignature_locked(std::string id, void *data, int datalen,
|
||||
gpgme_set_armor (CTX, 0);
|
||||
|
||||
gpgme_error_t ERR;
|
||||
if (GPG_ERR_NO_ERROR != (ERR = gpgme_op_verify(CTX,gpgmeSig, gpgmeData, NULL)))
|
||||
if (GPG_ERR_NO_ERROR != (ERR = gpgme_op_verify(CTX,gpgmeSig, gpgmeData, NULL)) && siglen != 0)
|
||||
{
|
||||
ProcessPGPmeError(ERR);
|
||||
std::cerr << "GPGAuthMgr::VerifySignature_locked FAILED for first try.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user