summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven McCoy <steven.mccoy@miru.hk>2010-05-13 12:41:20 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-05-13 12:41:20 +0200
commit56262d7ba79a9ba19fc1b89fdc07bca3894062f2 (patch)
treecaf35246cd9da7aed1ab85aa60f793b395a6010a
parent127cb89ac1271bf85798294d450509b7c23019bd (diff)
some more sanity checks in pgm_socket
-rw-r--r--src/pgm_socket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp
index f9781a5..e4e17d3 100644
--- a/src/pgm_socket.cpp
+++ b/src/pgm_socket.cpp
@@ -489,6 +489,10 @@ ssize_t zmq::pgm_socket_t::receive (void **raw_data_, const pgm_tsi_t **tsi_)
zmq_assert (status == PGM_IO_STATUS_NORMAL);
}
+ else
+ {
+ zmq_assert (pgm_msgv_processed <= pgm_msgv_len);
+ }
zmq_assert (nbytes_rec > 0);