Commit 51d2d9b9 authored by Martin Sustrik's avatar Martin Sustrik

Yet one more fix for oversized messages.

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 112d0cd5
......@@ -65,6 +65,8 @@ bool zmq::decoder_t::one_byte_size_ready ()
// message and thus we can treat it as uninitialised...
int rc = zmq_msg_init_size (&in_progress, *tmpbuf - 1);
if (rc != 0 && errno == ENOMEM) {
rc = zmq_msg_init (&in_progress);
errno_assert (rc == 0);
decoding_error ();
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment