Expect to receive bitmap only for successfull response

This commit is contained in:
Vitaliy Filippov
2026-05-18 01:17:56 +03:00
parent f271c8450c
commit 88b7d9afcd
+1 -1
View File
@@ -372,7 +372,7 @@ bool osd_messenger_t::handle_reply_hdr(osd_client_t *cl)
stop_client(cl->client_id);
return false;
}
if (bmp_len > 0)
if (op->reply.hdr.retval >= 0 && bmp_len > 0)
{
assert(op->bitmap);
cl->recv_list.push_back(op->bitmap, bmp_len);