add missing msg->init for ROUTER_RAW with empty message

This commit is contained in:
MinRK
2013-10-27 22:50:04 -07:00
parent dad0933469
commit 96ee8bb9d9

View File

@@ -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;
}