diff --git a/xroot_ssi_pb/XrdSsiPbIStreamBuffer.hpp b/xroot_ssi_pb/XrdSsiPbIStreamBuffer.hpp
index 82c24bb7ba7c3b3f532ab7f6a1a845795a850c4a..602da930734a26433ce25e07a700344f3ac6554b 100644
--- a/xroot_ssi_pb/XrdSsiPbIStreamBuffer.hpp
+++ b/xroot_ssi_pb/XrdSsiPbIStreamBuffer.hpp
@@ -139,6 +139,8 @@ std::cerr << "[1] " << msg_len << std::endl;
 std::cerr << "[2] " << msg_len << std::endl;
          popRecord(msg_len, split_stream);
       }
+
+      m_split_buflen = 0;
    }
 
    // Extract remaining records from the input buffer