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
Hide 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 @@
...
@@ -2,7 +2,7 @@
* httpd.c
* httpd.c
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* 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>
* 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 )
...
@@ -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
)
);
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_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
++
;
p_info
->
i_count
++
;
}
}
...
@@ -1029,14 +1029,17 @@ static int Control( httpd_t *p_httpd,
...
@@ -1029,14 +1029,17 @@ static int Control( httpd_t *p_httpd,
/* we can't take lock */
/* we can't take lock */
for
(
p_con
=
p_httpt
->
p_first_connection
;
p_con
!=
NULL
;
p_con
=
p_con
->
p_next
)
for
(
p_con
=
p_httpt
->
p_first_connection
;
p_con
!=
NULL
;
p_con
=
p_con
->
p_next
)
{
{
httpd_info_add_sp
(
p_info
,
if
(
p_con
->
i_state
!=
HTTPD_CONNECTION_TO_BE_CLOSED
)
"id"
,
p_con
);
{
httpd_info_add_ss
(
p_info
,
httpd_info_add_sp
(
p_info
,
"ip"
,
inet_ntoa
(
p_con
->
sock
.
sin_addr
)
);
"id"
,
p_con
);
httpd_info_add_ss
(
p_info
,
httpd_info_add_ss
(
p_info
,
"url"
,
p_con
->
psz_file
);
"ip"
,
inet_ntoa
(
p_con
->
sock
.
sin_addr
)
);
httpd_info_add_si
(
p_info
,
httpd_info_add_ss
(
p_info
,
"status"
,
p_con
->
i_http_error
);
"url"
,
p_con
->
psz_file
);
httpd_info_add_si
(
p_info
,
"status"
,
p_con
->
i_http_error
);
}
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
HTTPD_GET_ACL
:
case
HTTPD_GET_ACL
:
...
...
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