From 7b4364035ef24f97c13e3377da079468120c1700 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Fri, 6 Aug 2010 22:45:59 +0000 Subject: [PATCH] Added missing break in AuthGPGimpl::VerifySignature git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3348 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/authgpg.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/pqi/authgpg.cc b/libretroshare/src/pqi/authgpg.cc index 5e02b6b55..abff5fa7f 100644 --- a/libretroshare/src/pqi/authgpg.cc +++ b/libretroshare/src/pqi/authgpg.cc @@ -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; } }