From ee54247cc2c218a27492878207995c3b6c5bf1d7 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 28 Mar 2013 19:48:45 +0000 Subject: [PATCH] fixed bug that would reset service permission flags when discovery is enabled and discovery info is received git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6283 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3peermgr.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/pqi/p3peermgr.cc b/libretroshare/src/pqi/p3peermgr.cc index 9b09ded06..ae0c15b63 100644 --- a/libretroshare/src/pqi/p3peermgr.cc +++ b/libretroshare/src/pqi/p3peermgr.cc @@ -564,6 +564,7 @@ bool p3PeerMgrIMPL::addFriend(const std::string& input_id, const std::string& in mLinkMgr->addFriend(id, !(visState & RS_VIS_STATE_NODHT)); } + service_flags &= servicePermissionFlags(gpg_id) ; // Always reduce the permissions. setServicePermissionFlags(gpg_id,service_flags) ; #ifdef PEER_DEBUG