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
fca556b4
Commit
fca556b4
authored
May 30, 2008
by
Rémi Denis-Courmont
Committed by
Rémi Denis-Courmont
May 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NULL pointer deferences (CID 120 & 121)
(cherry picked from commit
fb04f249
)
parent
ed4e89f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/network/httpd.c
src/network/httpd.c
+2
-2
No files found.
src/network/httpd.c
View file @
fca556b4
...
...
@@ -365,7 +365,6 @@ struct httpd_file_t
static
int
httpd_FileCallBack
(
httpd_callback_sys_t
*
p_sys
,
httpd_client_t
*
cl
,
httpd_message_t
*
answer
,
httpd_message_t
*
query
)
{
httpd_file_t
*
file
=
(
httpd_file_t
*
)
p_sys
;
uint8_t
*
psz_args
=
query
->
psz_args
;
uint8_t
**
pp_body
,
*
p_body
;
char
*
psz_connection
=
NULL
;
int
*
pi_body
,
i_body
;
...
...
@@ -403,6 +402,7 @@ static int httpd_FileCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
/* msg_Warn not supported */
}
uint8_t
*
psz_args
=
query
->
psz_args
;
file
->
pf_fill
(
file
->
p_sys
,
file
,
psz_args
,
pp_body
,
pi_body
);
if
(
query
->
i_type
==
HTTPD_MSG_HEAD
&&
p_body
!=
NULL
)
...
...
@@ -486,7 +486,6 @@ struct httpd_handler_t
static
int
httpd_HandlerCallBack
(
httpd_callback_sys_t
*
p_sys
,
httpd_client_t
*
cl
,
httpd_message_t
*
answer
,
httpd_message_t
*
query
)
{
httpd_handler_t
*
handler
=
(
httpd_handler_t
*
)
p_sys
;
uint8_t
*
psz_args
=
query
->
psz_args
;
char
psz_remote_addr
[
NI_MAXNUMERICHOST
];
if
(
answer
==
NULL
||
query
==
NULL
)
...
...
@@ -503,6 +502,7 @@ static int httpd_HandlerCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *c
if
(
httpd_ClientIP
(
cl
,
psz_remote_addr
)
==
NULL
)
*
psz_remote_addr
=
'\0'
;
uint8_t
*
psz_args
=
query
->
psz_args
;
handler
->
pf_fill
(
handler
->
p_sys
,
handler
,
query
->
psz_url
,
psz_args
,
query
->
i_type
,
query
->
p_body
,
query
->
i_body
,
psz_remote_addr
,
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