Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0943126a
Commit
0943126a
authored
Mar 03, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes invalid memory access in case of TLS handshake failure
parent
9207dd48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/misc/httpd.c
src/misc/httpd.c
+2
-2
No files found.
src/misc/httpd.c
View file @
0943126a
/*****************************************************************************
/*****************************************************************************
* httpd.c
* httpd.c
*****************************************************************************
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* Copyright (C) 2004
-2005
VideoLAN
* $Id$
* $Id$
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
...
@@ -2478,7 +2478,6 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -2478,7 +2478,6 @@ static void httpd_HostThread( httpd_host_t *host )
fcntl
(
fd
,
F_SETFL
,
O_NONBLOCK
);
fcntl
(
fd
,
F_SETFL
,
O_NONBLOCK
);
#endif
#endif
/* FIXME: that MUST be non-blocking */
if
(
p_tls
!=
NULL
)
if
(
p_tls
!=
NULL
)
{
{
switch
(
tls_SessionHandshake
(
p_tls
,
fd
)
)
switch
(
tls_SessionHandshake
(
p_tls
,
fd
)
)
...
@@ -2487,6 +2486,7 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -2487,6 +2486,7 @@ static void httpd_HostThread( httpd_host_t *host )
msg_Err
(
host
,
"Rejecting TLS connection"
);
msg_Err
(
host
,
"Rejecting TLS connection"
);
net_Close
(
fd
);
net_Close
(
fd
);
fd
=
-
1
;
fd
=
-
1
;
p_tls
=
NULL
;
break
;
break
;
case
1
:
/* missing input - most likely */
case
1
:
/* missing input - most likely */
...
...
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