From c663f37761c7bebd0061061ede13a4e9aef5b6f4 Mon Sep 17 00:00:00 2001 From: MinRK Date: Sun, 27 Oct 2013 22:50:04 -0700 Subject: [PATCH] add missing msg->init for ROUTER_RAW with empty message --- src/router.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/router.cpp b/src/router.cpp index 5bac2d82..6fabf67f 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -225,6 +225,8 @@ int zmq::router_t::xsend (msg_t *msg_) current_out->terminate (false); int rc = msg_->close (); errno_assert (rc == 0); + rc = msg_->init (); + errno_assert (rc == 0); current_out = NULL; return 0; }