mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01: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_,
|
void *hint_,
|
||||||
content_t *content_)
|
content_t *content_)
|
||||||
{
|
{
|
||||||
if (size_ < max_vsm_size) {
|
if (size_ <= max_vsm_size) {
|
||||||
const int rc = init_size (size_);
|
const int rc = init_size (size_);
|
||||||
|
|
||||||
if (rc != -1) {
|
if (rc != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user