0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-31 01:43:02 +08:00

Init message in drop subscription

Fixes reported issue with PGM receiver on 32bit Suse where asserts
were hit due to the msg flags not being zeroed.
This commit is contained in:
Ian Barber 2012-09-25 22:58:25 +01:00
parent 2a209140f7
commit afa4933c1e

View File

@ -274,6 +274,7 @@ void zmq::pgm_receiver_t::timer_event (int token)
void zmq::pgm_receiver_t::drop_subscriptions ()
{
msg_t msg;
msg.init ();
while (session->pull_msg (&msg))
msg.close ();
}