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
6436bc51
Commit
6436bc51
authored
Mar 30, 2017
by
evoskuil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: sub.xsetsockopt leaks message (0..n bytes) payload on fail.
parent
1b79da0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
sub.cpp
src/sub.cpp
+1
-8
No files found.
src/sub.cpp
View file @
6436bc51
...
...
@@ -69,15 +69,8 @@ int zmq::sub_t::xsetsockopt (int option_, const void *optval_,
memcpy
(
data
+
1
,
optval_
,
optvallen_
);
}
// Pass it further on in the stack.
int
err
=
0
;
rc
=
xsub_t
::
xsend
(
&
msg
);
if
(
rc
!=
0
)
err
=
errno
;
int
rc2
=
msg
.
close
();
errno_assert
(
rc2
==
0
);
if
(
rc
!=
0
)
errno
=
err
;
return
rc
;
return
close_and_return
(
&
msg
,
rc
);
}
int
zmq
::
sub_t
::
xsend
(
msg_t
*
)
...
...
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