Validate tenantId and colocationId

pull/6763/head
Gokhan Gulbiz 2023-03-23 12:22:03 +03:00
parent 0efb897706
commit 161ec751d1
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 5 additions and 0 deletions

View File

@ -207,6 +207,11 @@ AttributeQueryIfAnnotated(const char *query_string, CmdType commandType)
void void
AttributeTask(char *tenantId, int colocationId, CmdType commandType) AttributeTask(char *tenantId, int colocationId, CmdType commandType)
{ {
if (tenantId == NULL || colocationId == INVALID_COLOCATION_ID)
{
return;
}
colocationGroupId = colocationId; colocationGroupId = colocationId;
strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId); strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId);
attributeCommandType = commandType; attributeCommandType = commandType;