Added missing break in AuthGPGimpl::VerifySignature

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3348 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-08-06 22:45:59 +00:00
parent eccdba153e
commit 7b4364035e

View File

@ -888,13 +888,14 @@ bool AuthGPGimpl::VerifySignature(const void *data, int datalen, const void *sig
#ifdef GPG_DEBUG
fprintf(stderr, "AuthGPGimpl::VerifySignature() OK\n");
#endif
if (withfingerprint != "" && withfingerprint == std::string(sg->fpr)) {
if (withfingerprint.empty() == false && withfingerprint == sg->fpr) {
#ifdef GPG_DEBUG
fprintf(stderr, "AuthGPGimpl::VerifySignature() for the fingerprint key : ");
std::cerr << withfingerprint;
fprintf(stderr, "\n");
#endif
valid = true;
break;
}
}