0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-31 01:43:02 +08:00

Merge pull request #998 from hurtonm/master

Don't add empty metadata to received messages
This commit is contained in:
Pieter Hintjens 2014-05-02 09:11:55 +02:00
commit 55c06924c8

View File

@ -142,6 +142,7 @@ int zmq::mechanism_t::parse_metadata (const unsigned char *ptr_,
}
if (zap_flag) {
assert (metadata == NULL);
if (!dict.empty ())
metadata = new (std::nothrow) metadata_t (dict);
}
return 0;