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
014b201d
Commit
014b201d
authored
Aug 16, 2017
by
sigiesec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: ZAP message without credentials is not terminated
Solution: Set more flag depending on presence of credentials
parent
b324c66b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
zap_client.cpp
src/zap_client.cpp
+2
-1
No files found.
src/zap_client.cpp
View file @
014b201d
...
...
@@ -105,7 +105,8 @@ int zap_client_t::send_zap_request (const char *mechanism,
rc
=
msg
.
init_size
(
mechanism_length
);
errno_assert
(
rc
==
0
);
memcpy
(
msg
.
data
(),
mechanism
,
mechanism_length
);
msg
.
set_flags
(
msg_t
::
more
);
if
(
credentials
)
msg
.
set_flags
(
msg_t
::
more
);
rc
=
session
->
write_zap_msg
(
&
msg
);
if
(
rc
!=
0
)
return
close_and_return
(
&
msg
,
-
1
);
...
...
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