From 56262d7ba79a9ba19fc1b89fdc07bca3894062f2 Mon Sep 17 00:00:00 2001
From: Steven McCoy <steven.mccoy@miru.hk>
Date: Thu, 13 May 2010 12:41:20 +0200
Subject: some more sanity checks in pgm_socket

---
 src/pgm_socket.cpp | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src')

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);
 
-- 
cgit v1.2.3