summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven McCoy <steven.mccoy@miru.hk>2010-05-13 12:43:58 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-05-13 12:43:58 +0200
commit6705a3d5807542ee2ed8a1ef6e3d9f769e5d5a93 (patch)
tree37827a651efafbe166c2bd5497b56b0c57c38231
parentff9d3985556aa58a5d120a3eb72867c7ebea924d (diff)
some more sanity checks in pgm_socket
-rw-r--r--src/pgm_socket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp
index e4e17d3..5a952a7 100644
--- a/src/pgm_socket.cpp
+++ b/src/pgm_socket.cpp
@@ -511,6 +511,7 @@ ssize_t zmq::pgm_socket_t::receive (void **raw_data_, const pgm_tsi_t **tsi_)
// Move the the next pgm_msgv_t structure.
pgm_msgv_processed++;
+ zmq_assert (pgm_msgv_processed <= pgm_msgv_len);
nbytes_processed +=raw_data_len;
return raw_data_len;