From f8639e54865c3faf2e334899dd45997c2919d5c2 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 2 Apr 2016 16:44:41 -0400 Subject: [PATCH] fixed bug considering null PGP ids in ban list --- libretroshare/src/services/p3gxsreputation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3gxsreputation.cc b/libretroshare/src/services/p3gxsreputation.cc index f4c334a02..5fd539a01 100644 --- a/libretroshare/src/services/p3gxsreputation.cc +++ b/libretroshare/src/services/p3gxsreputation.cc @@ -258,7 +258,7 @@ void p3GxsReputation::updateBannedNodesList() std::map pgp_ids_to_ban ; for( std::map::iterator rit = tmpreps.begin();rit!=tmpreps.end();++rit) - if((rit->second.mIdentityFlags & REPUTATION_IDENTITY_FLAG_PGP_LINKED) && rit->second.mOwnOpinion == p3GxsReputation::OPINION_NEGATIVE) + if((rit->second.mIdentityFlags & REPUTATION_IDENTITY_FLAG_PGP_LINKED) && !rit->second.mOwnerNode.isNull() && rit->second.mOwnOpinion == p3GxsReputation::OPINION_NEGATIVE) ++pgp_ids_to_ban[rit->second.mOwnerNode] ; mBannedPgpIds.clear() ;