fix: carry immutable hash in command dispatch
This commit is contained in:
@@ -188,7 +188,7 @@ func validateClientHello(hello *rvboxv1.ClientHello) error {
|
||||
}
|
||||
|
||||
func validateCommandDispatch(dispatch *rvboxv1.CommandDispatch, limits Limits, peerPlatform rvboxv1.Platform) error {
|
||||
if dispatch == nil || dispatch.CommandRevision == 0 || dispatch.TargetSessionGeneration == 0 || dispatch.IssueTime == nil || dispatch.IssueTime.CheckValid() != nil {
|
||||
if dispatch == nil || dispatch.CommandRevision == 0 || dispatch.TargetSessionGeneration == 0 || dispatch.IssueTime == nil || dispatch.IssueTime.CheckValid() != nil || len(dispatch.ImmutableRequestSha256) != sha256.Size {
|
||||
return fmt.Errorf("%w: invalid command dispatch", ErrInvalidEnvelope)
|
||||
}
|
||||
if err := validateIssueUUID(dispatch.IssueUuid); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user