Commit 66b7edfb authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #367 from hurtonm/issue_309

Fix the message decoder to ignore reserved flags.
parents b0792ec7 796212a9
......@@ -145,7 +145,7 @@ bool zmq::decoder_t::eight_byte_size_ready ()
bool zmq::decoder_t::flags_ready ()
{
// Store the flags from the wire into the message structure.
in_progress.set_flags (tmpbuf [0]);
in_progress.set_flags (tmpbuf [0] & msg_t::more);
next_step (in_progress.data (), in_progress.size (),
&decoder_t::message_ready);
......
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