0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 08:39:42 +08:00

add missing msg->init for ROUTER_RAW with empty message

This commit is contained in:
MinRK 2013-10-27 22:50:04 -07:00 committed by Pieter Hintjens
parent b22c2e4f8a
commit c663f37761

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