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
55c26344
Commit
55c26344
authored
8 years ago
by
Alexander Alashkin
Committed by
rojer
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check listener when reusing UDP conn. Closes cesanta/dev#3139
PUBLISHED_FROM=f03f8fad30faee62f290d37b0b909ef49f301b80
parent
fe0d340c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mongoose.c
mongoose.c
+3
-1
No files found.
mongoose.c
View file @
55c26344
...
...
@@ -2698,7 +2698,9 @@ void mg_if_recv_udp_cb(struct mg_connection *nc, void *buf, int len,
* This is very inefficient for long connection lists.
*/
for
(
nc
=
mg_next
(
lc
->
mgr
,
NULL
);
nc
!=
NULL
;
nc
=
mg_next
(
lc
->
mgr
,
nc
))
{
if
(
memcmp
(
&
nc
->
sa
.
sa
,
&
sa
->
sa
,
sa_len
)
==
0
)
break
;
if
(
memcmp
(
&
nc
->
sa
.
sa
,
&
sa
->
sa
,
sa_len
)
==
0
&&
nc
->
listener
==
lc
)
{
break
;
}
}
if
(
nc
==
NULL
)
{
struct
mg_add_sock_opts
opts
;
...
...
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