File bsc1176259.patch of Package saltbundle-zeromq

Index: zeromq-4.2.3/src/xpub.cpp
===================================================================
--- zeromq-4.2.3.orig/src/xpub.cpp
+++ zeromq-4.2.3/src/xpub.cpp
@@ -129,8 +136,9 @@ void zmq::xpub_t::xread_activated (pipe_
                 }
             }
         }
-        else {
+        else if (options.type != ZMQ_PUB) {
             //  Process user message coming upstream from xsub socket
+            //  but not if the type is PUB, which never processes user messages
             pending_data.push_back (blob_t (data, size));
             if (metadata)
                 metadata->add_ref ();
openSUSE Build Service is sponsored by