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
3aa5a9d4
Commit
3aa5a9d4
authored
Oct 09, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1202 from pavel-pimenov/fix-pvs-studio
PVS Studio small fix
parents
432c8496
18ee219c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
session_base.cpp
src/session_base.cpp
+1
-1
stream_engine.cpp
src/stream_engine.cpp
+3
-3
No files found.
src/session_base.cpp
View file @
3aa5a9d4
...
...
@@ -494,7 +494,7 @@ void zmq::session_base_t::start_connecting (bool wait_)
// Create the connecter object.
if
(
addr
->
protocol
==
"tcp"
)
{
if
(
options
.
socks_proxy_address
!=
""
)
{
if
(
!
options
.
socks_proxy_address
.
empty
()
)
{
address_t
*
proxy_address
=
new
(
std
::
nothrow
)
address_t
(
"tcp"
,
options
.
socks_proxy_address
);
alloc_assert
(
proxy_address
);
...
...
src/stream_engine.cpp
View file @
3aa5a9d4
...
...
@@ -96,7 +96,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_,
int
family
=
get_peer_ip_address
(
s
,
peer_address
);
if
(
family
==
0
)
peer_address
=
""
;
peer_address
.
clear
()
;
#if defined ZMQ_HAVE_SO_PEERCRED
else
if
(
family
==
PF_UNIX
)
{
...
...
@@ -781,7 +781,7 @@ void zmq::stream_engine_t::mechanism_ready ()
it
=
zap_properties
.
begin
();
while
(
it
!=
zap_properties
.
end
())
{
properties
.
insert
(
properties_t
::
value_type
(
it
->
first
,
it
->
second
));
it
++
;
++
it
;
}
// Add ZMTP properties.
...
...
@@ -789,7 +789,7 @@ void zmq::stream_engine_t::mechanism_ready ()
it
=
zmtp_properties
.
begin
();
while
(
it
!=
zmtp_properties
.
end
())
{
properties
.
insert
(
properties_t
::
value_type
(
it
->
first
,
it
->
second
));
it
++
;
++
it
;
}
zmq_assert
(
metadata
==
NULL
);
...
...
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