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
This commit is contained in:
electron128 2015-03-19 08:43:40 +00:00
parent 594590f635
commit 2335290a56

View File

@ -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);