Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
9937e889
Commit
9937e889
authored
Dec 07, 2016
by
Marko Mikulicic
Committed by
Cesanta Bot
Dec 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comparisons
PUBLISHED_FROM=4d86de7f73ef9d4c0f236e1fe1201e5de792f19f
parent
57f964a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mongoose.c
mongoose.c
+5
-5
No files found.
mongoose.c
View file @
9937e889
...
...
@@ -9691,11 +9691,11 @@ void mg_send_mqtt_handshake_opt(struct mg_connection *nc, const char *client_id,
opts
.
flags
|=
MG_MQTT_HAS_PASSWORD
;
rem_len
+=
(
uint8_t
)
strlen
(
opts
.
password
)
+
2
;
}
if
(
opts
.
will_topic
!=
NULL
&&
opts
.
will_message
!=
NULL
)
{
opts
.
flags
|=
MG_MQTT_HAS_WILL
;
rem_len
+=
(
uint8_t
)
strlen
(
opts
.
will_topic
)
+
2
;
rem_len
+=
(
uint8_t
)
strlen
(
opts
.
will_message
)
+
2
;
}
if
(
opts
.
will_topic
!=
NULL
&&
opts
.
will_message
!=
NULL
)
{
opts
.
flags
|=
MG_MQTT_HAS_WILL
;
rem_len
+=
(
uint8_t
)
strlen
(
opts
.
will_topic
)
+
2
;
rem_len
+=
(
uint8_t
)
strlen
(
opts
.
will_message
)
+
2
;
}
mg_send
(
nc
,
&
header
,
1
);
mg_send
(
nc
,
&
rem_len
,
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