Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
ac9b05c3
Commit
ac9b05c3
authored
Sep 30, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'maint'
* maint: zmq_msg_move called on uninitialised message in xrep_t::xrecv -- fixed
parents
98fa2fa8
79aea5ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
AUTHORS
AUTHORS
+1
-0
xrep.cpp
src/xrep.cpp
+4
-3
No files found.
AUTHORS
View file @
ac9b05c3
...
...
@@ -27,6 +27,7 @@ Martin Hurton <hurtonm@gmail.com>
Martin Lucina <mato@kotelna.sk>
Martin Sustrik <sustrik@250bpm.com>
Matus Hamorsky <mhamorsky@gmail.com>
Max Wolf <YIDIEPXGXGPN@spammotel.com>
McClain Looney <m@loonsoft.com>
Mikael Helbo Kjaer <mhk@designtech.dk>
Pavel Gushcha <pavimus@gmail.com>
...
...
src/xrep.cpp
View file @
ac9b05c3
...
...
@@ -199,9 +199,7 @@ int zmq::xrep_t::xsend (zmq_msg_t *msg_, int flags_)
int
zmq
::
xrep_t
::
xrecv
(
zmq_msg_t
*
msg_
,
int
flags_
)
{
// Deallocate old content of the message.
zmq_msg_close
(
msg_
);
// If there is a prefetched message, return it.
if
(
prefetched
)
{
zmq_msg_move
(
msg_
,
&
prefetched_msg
);
more_in
=
msg_
->
flags
&
ZMQ_MSG_MORE
;
...
...
@@ -209,6 +207,9 @@ int zmq::xrep_t::xrecv (zmq_msg_t *msg_, int flags_)
return
0
;
}
// Deallocate old content of the message.
zmq_msg_close
(
msg_
);
// If we are in the middle of reading a message, just grab next part of it.
if
(
more_in
)
{
zmq_assert
(
inpipes
[
current_in
].
active
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment