From 72d743584a80c39b3d7910f29db39aa4b420704e Mon Sep 17 00:00:00 2001 From: Phenom Date: Mon, 8 Aug 2016 19:05:42 +0200 Subject: [PATCH] Fix RsGxsNetService::handleRecvPublishKeys when grpMeta is NULL Bug noted by Papache --- libretroshare/src/gxs/rsgxsnetservice.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/gxs/rsgxsnetservice.cc b/libretroshare/src/gxs/rsgxsnetservice.cc index b29839bcd..0bd8c5b5b 100644 --- a/libretroshare/src/gxs/rsgxsnetservice.cc +++ b/libretroshare/src/gxs/rsgxsnetservice.cc @@ -4827,6 +4827,10 @@ void RsGxsNetService::handleRecvPublishKeys(RsNxsGroupPublishKeyItem *item) // update the publish keys in this group meta info RsGxsGrpMetaData *grpMeta = grpMetaMap[item->grpId] ; + if (!grpMeta) { + std::cerr << "(EE) RsGxsNetService::handleRecvPublishKeys() grpMeta not found." << std::endl; + return ; + } // Check that the keys correspond, and that FULL keys are supplied, etc.