Skip to content
Snippets Groups Projects
Commit f9e79778 authored by Michael Eischer's avatar Michael Eischer
Browse files

Enforce that the client stage only accepts config notifications for its group

parent e96f46bd
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,10 @@ public class REFITClientStage extends REFITStage {
case CONFIGURATION_NOTIFICATION:
REFITConfigurationNotification notification = (REFITConfigurationNotification) instruction;
int limitedGroupID = Math.max(0, groupID);
if (limitedGroupID != notification.groupID) {
throw new InternalError("Got configuration for unexpected group " + notification.groupID);
}
REFITOrderProtocol protocol = notification.protocol;
sendReplies = protocol.getActiveOrderRecipients(limitedGroupID)[replica.id];
contactReplica = REFITOrderGroups.getGroupPrimary(notification.groupID, notification.viewID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment