From 2335290a56cd3eece629fffff40595015c3ed6e5 Mon Sep 17 00:00:00 2001 From: electron128 Date: Thu, 19 Mar 2015 08:43:40 +0000 Subject: [PATCH] added check for empty author id in gxs group creation git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8050 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/gxs/rsgenexchange.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index f5e9e4998..7b0a455b1 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -470,7 +470,13 @@ int RsGenExchange::createGroupSignatures(RsTlvKeySignatureSet& signSet, RsTlvBin if (needIdentitySign) { - if(mGixs) + if(grpMeta.mAuthorId.isNull()) + { + std::cerr << "RsGenExchange::createGroupSignatures() "; + std::cerr << "Group signature is required by service, but the author id is null." << std::endl; + id_ret = SIGN_FAIL; + } + else if(mGixs) { bool haveKey = mGixs->havePrivateKey(grpMeta.mAuthorId);