[#1211] neofs-cli: Fix objectIDs list reader

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-03 11:12:22 +03:00 committed by Alex Vanin
parent 4935016bf8
commit 6d3e626f20

View file

@ -679,14 +679,13 @@ func SearchObjects(prm SearchObjectsPrm) (*SearchObjectsRes, error) {
for {
n, ok = rdr.Read(buf)
if !ok {
break
}
for i := 0; i < n; i++ {
v := buf[i]
list = append(list, &v)
}
if !ok {
break
}
}
_, err = rdr.Close()