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
67c44799
Commit
67c44799
authored
Mar 05, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSL_accept() error handling fix
parent
4646e2ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mongoose.c
mongoose.c
+2
-2
No files found.
mongoose.c
View file @
67c44799
...
@@ -659,7 +659,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
...
@@ -659,7 +659,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
DBG
((
"%p res %d %d"
,
conn
,
res
,
ssl_err
));
DBG
((
"%p res %d %d"
,
conn
,
res
,
ssl_err
));
if
(
res
==
1
)
{
if
(
res
==
1
)
{
conn
->
flags
=
NSF_SSL_HANDSHAKE_DONE
;
conn
->
flags
=
NSF_SSL_HANDSHAKE_DONE
;
}
else
if
(
res
==
0
||
ssl_err
==
2
||
ssl_err
==
3
)
{
}
else
if
(
res
==
0
&&
(
ssl_err
==
2
||
ssl_err
==
3
)
)
{
return
;
// Call us again
return
;
// Call us again
}
else
{
}
else
{
ok
=
1
;
ok
=
1
;
...
@@ -685,7 +685,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
...
@@ -685,7 +685,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
DBG
((
"%p res %d %d"
,
conn
,
res
,
ssl_err
));
DBG
((
"%p res %d %d"
,
conn
,
res
,
ssl_err
));
if
(
res
==
1
)
{
if
(
res
==
1
)
{
conn
->
flags
|=
NSF_SSL_HANDSHAKE_DONE
;
conn
->
flags
|=
NSF_SSL_HANDSHAKE_DONE
;
}
else
if
(
res
==
0
||
ssl_err
==
2
||
ssl_err
==
3
)
{
}
else
if
(
res
==
0
&&
(
ssl_err
==
2
||
ssl_err
==
3
)
)
{
return
;
// Call us again
return
;
// Call us again
}
else
{
}
else
{
conn
->
flags
|=
NSF_CLOSE_IMMEDIATELY
;
conn
->
flags
|=
NSF_CLOSE_IMMEDIATELY
;
...
...
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