mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Merge pull request #367 from hurtonm/issue_309
Fix the message decoder to ignore reserved flags.
This commit is contained in:
commit
66b7edfbd1
@ -145,7 +145,7 @@ bool zmq::decoder_t::eight_byte_size_ready ()
|
|||||||
bool zmq::decoder_t::flags_ready ()
|
bool zmq::decoder_t::flags_ready ()
|
||||||
{
|
{
|
||||||
// Store the flags from the wire into the message structure.
|
// 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 (),
|
next_step (in_progress.data (), in_progress.size (),
|
||||||
&decoder_t::message_ready);
|
&decoder_t::message_ready);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user