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:
parent
b30a19ebde
commit
95caddb9a1
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user