[#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:
Evgenii Stratonikov 2024-05-15 12:03:32 +03:00
parent 0924b62a95
commit b3eaa8a9bc

View file

@ -142,6 +142,9 @@ func (s *Service) forwardGetRangeHashRequest(ctx context.Context, req *objectV2.
resp, err := s.performGetRangeHashOnNode(ctx, req, info) resp, err := s.performGetRangeHashOnNode(ctx, req, info)
if err == nil { if err == nil {
if err := verifyResponse(resp, info.PublicKey()); err != nil {
return nil, err
}
return resp, nil return resp, nil
} }
if firstErr == nil { if firstErr == nil {