mirror of
https://github.com/schoebel/mars
synced 2024-12-24 23:52:46 +00:00
net: fix decompression block-aligned allocation
This commit is contained in:
parent
f9c1c6f536
commit
a8b91e2d8a
@ -1387,6 +1387,10 @@ int mars_recv_mref(struct mars_socket *msock, struct mref_object *mref, struct m
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Ensure that ref_data is block-aligned */
|
||||
if (!mref->ref_data)
|
||||
mref->ref_data = brick_block_alloc(0, mref->ref_len);
|
||||
|
||||
status = -EBADMSG;
|
||||
decompr_buf =
|
||||
mars_decompress(tmp_buf, cmd->cmd_compr_len,
|
||||
|
Loading…
Reference in New Issue
Block a user