mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-02 05:46:24 +01: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:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user