forked from TrueCloudLab/frostfs-node
[#1083] objsvc/v2: Check response status in RANGE_HASH forwarder
Fixes #1083 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
0924b62a95
commit
b3eaa8a9bc
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ func (s *Service) forwardGetRangeHashRequest(ctx context.Context, req *objectV2.
|
|||
|
||||
resp, err := s.performGetRangeHashOnNode(ctx, req, info)
|
||||
if err == nil {
|
||||
if err := verifyResponse(resp, info.PublicKey()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return resp, nil
|
||||
}
|
||||
if firstErr == nil {
|
||||
|
|
Loading…
Reference in a new issue