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
4656e7b0
Commit
4656e7b0
authored
8 years ago
by
Dmitry Frank
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't access nc->ssl if SSL is disabled
PUBLISHED_FROM=bdbd9416f73f84a3d8afbffe886d0922c36769d4
parent
4216cf2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mongoose.c
mongoose.c
+4
-0
No files found.
mongoose.c
View file @
4656e7b0
...
@@ -11691,9 +11691,13 @@ void mg_if_recved(struct mg_connection *nc, size_t len) {
...
@@ -11691,9 +11691,13 @@ void mg_if_recved(struct mg_connection *nc, size_t len) {
DBG
((
"%p %p %u"
,
nc
,
cs
->
pcb
.
tcp
,
len
));
DBG
((
"%p %p %u"
,
nc
,
cs
->
pcb
.
tcp
,
len
));
/* Currently SSL acknowledges data immediately.
/* Currently SSL acknowledges data immediately.
* TODO(rojer): Find a way to propagate mg_if_recved. */
* TODO(rojer): Find a way to propagate mg_if_recved. */
#if MG_ENABLE_SSL
if
(
nc
->
ssl
==
NULL
)
{
if
(
nc
->
ssl
==
NULL
)
{
tcp_recved
(
cs
->
pcb
.
tcp
,
len
);
tcp_recved
(
cs
->
pcb
.
tcp
,
len
);
}
}
#else
tcp_recved
(
cs
->
pcb
.
tcp
,
len
);
#endif
mbuf_trim
(
&
nc
->
recv_mbuf
);
mbuf_trim
(
&
nc
->
recv_mbuf
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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