Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
af3dd2cf
Commit
af3dd2cf
authored
Jul 10, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* httpd: fix a segfault.
parent
21c3df33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
modules/misc/httpd.c
modules/misc/httpd.c
+13
-10
No files found.
modules/misc/httpd.c
View file @
af3dd2cf
...
...
@@ -2,7 +2,7 @@
* httpd.c
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: httpd.c,v 1.2
3 2003/07/10 22:24:09
fenrir Exp $
* $Id: httpd.c,v 1.2
4 2003/07/10 22:37:02
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -953,7 +953,7 @@ static void httpd_info_add_ss( httpd_info_t *p_info, char *name, char *value )
sizeof
(
httpd_val_t
)
*
(
p_info
->
i_count
+
1
)
);
}
p_info
->
info
[
p_info
->
i_count
].
psz_name
=
strdup
(
name
);
p_info
->
info
[
p_info
->
i_count
].
psz_value
=
strdup
(
value
);
p_info
->
info
[
p_info
->
i_count
].
psz_value
=
strdup
(
value
?
value
:
"(null)"
);
p_info
->
i_count
++
;
}
...
...
@@ -1028,6 +1028,8 @@ static int Control( httpd_t *p_httpd,
p_info
->
i_count
=
0
;
/* we can't take lock */
for
(
p_con
=
p_httpt
->
p_first_connection
;
p_con
!=
NULL
;
p_con
=
p_con
->
p_next
)
{
if
(
p_con
->
i_state
!=
HTTPD_CONNECTION_TO_BE_CLOSED
)
{
httpd_info_add_sp
(
p_info
,
"id"
,
p_con
);
...
...
@@ -1038,6 +1040,7 @@ static int Control( httpd_t *p_httpd,
httpd_info_add_si
(
p_info
,
"status"
,
p_con
->
i_http_error
);
}
}
return
VLC_SUCCESS
;
case
HTTPD_GET_ACL
:
p_info
=
arg1
;
...
...
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