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
dc44a90c
Commit
dc44a90c
authored
Apr 27, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpd: do not fail-open on memory errors
parent
b9b16620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/network/httpd.c
src/network/httpd.c
+6
-7
No files found.
src/network/httpd.c
View file @
dc44a90c
...
...
@@ -759,10 +759,9 @@ httpd_stream_t *httpd_StreamNew(httpd_host_t *host,
}
vlc_mutex_init
(
&
stream
->
lock
);
if
(
psz_mime
&&
*
psz_mime
)
stream
->
psz_mime
=
strdup
(
psz_mime
);
else
stream
->
psz_mime
=
strdup
(
vlc_mime_Ext2Mime
(
psz_url
));
if
(
psz_mime
==
NULL
||
psz_mime
[
0
]
==
'\0'
)
psz_mime
=
vlc_mime_Ext2Mime
(
psz_url
);
stream
->
psz_mime
=
xstrdup
(
psz_mime
);
stream
->
i_header
=
0
;
stream
->
p_header
=
NULL
;
...
...
@@ -1100,9 +1099,9 @@ httpd_url_t *httpd_UrlNew(httpd_host_t *host, const char *psz_url,
url
->
host
=
host
;
vlc_mutex_init
(
&
url
->
lock
);
url
->
psz_url
=
strdup
(
psz_url
);
url
->
psz_user
=
strdup
(
psz_user
?
psz_user
:
""
);
url
->
psz_password
=
strdup
(
psz_password
?
psz_password
:
""
);
url
->
psz_url
=
x
strdup
(
psz_url
);
url
->
psz_user
=
x
strdup
(
psz_user
?
psz_user
:
""
);
url
->
psz_password
=
x
strdup
(
psz_password
?
psz_password
:
""
);
for
(
int
i
=
0
;
i
<
HTTPD_MSG_MAX
;
i
++
)
{
url
->
catch
[
i
].
cb
=
NULL
;
url
->
catch
[
i
].
p_sys
=
NULL
;
...
...
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