0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-25 22:30:51 +08:00

Update msg.cpp

allow the max_vsm_size of data can init as vsm type msg

the init message of vsm size should be <= max_vsm_size include equal size.
This commit is contained in:
Yueshan 2023-10-20 01:20:37 +08:00 committed by Luca Boccassi
parent b30a19ebde
commit 95caddb9a1

View File

@ -32,7 +32,7 @@ int zmq::msg_t::init (void *data_,
void *hint_,
content_t *content_)
{
if (size_ < max_vsm_size) {
if (size_ <= max_vsm_size) {
const int rc = init_size (size_);
if (rc != -1) {