Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
e940c3c8
Commit
e940c3c8
authored
Jul 11, 2017
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issue #298
parent
e8d34da2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
MQTTPacket.c
src/MQTTPacket.c
+3
-3
No files found.
src/MQTTPacket.c
View file @
e940c3c8
...
...
@@ -174,7 +174,7 @@ exit:
* @param buflen the length of the data in buffer to be written
* @return the completion code (TCPSOCKET_COMPLETE etc)
*/
int
MQTTPacket_send
(
networkHandles
*
net
,
Header
header
,
char
*
buffer
,
size_t
buflen
,
int
free
)
int
MQTTPacket_send
(
networkHandles
*
net
,
Header
header
,
char
*
buffer
,
size_t
buflen
,
int
free
Data
)
{
int
rc
;
size_t
buf0len
;
...
...
@@ -196,10 +196,10 @@ int MQTTPacket_send(networkHandles* net, Header header, char* buffer, size_t buf
#if defined(OPENSSL)
if
(
net
->
ssl
)
rc
=
SSLSocket_putdatas
(
net
->
ssl
,
net
->
socket
,
buf
,
buf0len
,
1
,
&
buffer
,
&
buflen
,
&
free
);
rc
=
SSLSocket_putdatas
(
net
->
ssl
,
net
->
socket
,
buf
,
buf0len
,
1
,
&
buffer
,
&
buflen
,
&
free
Data
);
else
#endif
rc
=
Socket_putdatas
(
net
->
socket
,
buf
,
buf0len
,
1
,
&
buffer
,
&
buflen
,
&
free
);
rc
=
Socket_putdatas
(
net
->
socket
,
buf
,
buf0len
,
1
,
&
buffer
,
&
buflen
,
&
free
Data
);
if
(
rc
==
TCPSOCKET_COMPLETE
)
time
(
&
(
net
->
lastSent
));
...
...
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