summaryrefslogtreecommitdiff
path: root/src/pgm_receiver.cpp
diff options
context:
space:
mode:
authormalosek <malosek@fastmq.com>2009-09-28 18:06:06 +0200
committermalosek <malosek@fastmq.com>2009-09-28 18:06:06 +0200
commit39d915ded8ccb612ae1f9aaefcd93f349f4c8f4c (patch)
tree1da94b99d5072345e53d58ba5e304887ee7f1c1f /src/pgm_receiver.cpp
parentcf6cc0128ff4d26e0059f399bbb8342ce259b996 (diff)
PGM2 sender
Diffstat (limited to 'src/pgm_receiver.cpp')
-rw-r--r--src/pgm_receiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pgm_receiver.cpp b/src/pgm_receiver.cpp
index 50a8ff9..7af6ed5 100644
--- a/src/pgm_receiver.cpp
+++ b/src/pgm_receiver.cpp
@@ -153,7 +153,6 @@ void zmq::pgm_receiver_t::in_event ()
// information (sizeof uint16_t).
raw_data += sizeof (uint16_t);
nbytes -= sizeof (uint16_t);
- zmq_assert (apdu_offset <= nbytes);
// New peer.
if (it == peers.end ()) {
@@ -174,6 +173,7 @@ void zmq::pgm_receiver_t::in_event ()
// Now is the possibility to join the stream.
if (!it->second.joined) {
+ zmq_assert (apdu_offset <= nbytes);
zmq_assert (it->second.decoder == NULL);
// We have to move data to the begining of the first message.