Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1e6b04cc
Commit
1e6b04cc
authored
Dec 05, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Don't print a bogus warning when reading on empty line in a .host file
- Move acl.c to a more appropriate location
parent
fbbbd731
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
Makefile.am
Makefile.am
+1
-1
po/POTFILES.in
po/POTFILES.in
+1
-0
src/network/acl.c
src/network/acl.c
+7
-4
No files found.
Makefile.am
View file @
1e6b04cc
...
...
@@ -431,11 +431,11 @@ SOURCES_libvlc_common = \
src/stream_output/stream_output.c
\
src/stream_output/announce.c
\
src/stream_output/sap.c
\
src/stream_output/acl.c
\
src/osd/osd.c
\
src/osd/osd_parser.c
\
src/osd/osd_text.c
\
src/osd/osd_widgets.c
\
src/network/acl.c
\
src/network/getaddrinfo.c
\
src/network/io.c
\
src/network/tcp.c
\
...
...
po/POTFILES.in
View file @
1e6b04cc
...
...
@@ -122,6 +122,7 @@ src/misc/variables.c
src/misc/vlm.c
src/misc/win32_specific.c
src/misc/xml.c
src/network/acl.c
src/network/getaddrinfo.c
src/network/httpd.c
src/network/io.c
...
...
src/
stream_output
/acl.c
→
src/
network
/acl.c
View file @
1e6b04cc
...
...
@@ -66,7 +66,7 @@ static int ACL_Resolve( vlc_object_t *p_this, uint8_t *p_bytes,
msg_Err
(
p_this
,
"invalid IP address %s"
,
psz_ip
);
return
-
1
;
}
p_bytes
[
16
]
=
0
;
/* avoids overflowing when i_bytes_match = 16 */
i_family
=
res
->
ai_addr
->
sa_family
;
...
...
@@ -75,7 +75,7 @@ static int ACL_Resolve( vlc_object_t *p_this, uint8_t *p_bytes,
case
AF_INET
:
{
struct
sockaddr_in
*
addr
;
addr
=
(
struct
sockaddr_in
*
)
res
->
ai_addr
;
memset
(
p_bytes
,
0
,
12
);
memcpy
(
p_bytes
+
12
,
&
addr
->
sin_addr
,
4
);
...
...
@@ -203,7 +203,7 @@ vlc_acl_t *__ACL_Create( vlc_object_t *p_this, vlc_bool_t b_allow )
p_acl
->
i_size
=
0
;
p_acl
->
p_entries
=
NULL
;
p_acl
->
b_allow_default
=
b_allow
;
return
p_acl
;
}
...
...
@@ -264,7 +264,7 @@ void ACL_Destroy( vlc_acl_t *p_acl )
int
ACL_LoadFile
(
vlc_acl_t
*
p_acl
,
const
char
*
psz_path
)
{
FILE
*
file
;
if
(
p_acl
==
NULL
)
return
-
1
;
...
...
@@ -296,6 +296,9 @@ int ACL_LoadFile( vlc_acl_t *p_acl, const char *psz_path )
while
(
isspace
(
*
psz_ip
)
)
psz_ip
++
;
if
(
*
psz_ip
==
'\0'
)
/* empty/blank line */
continue
;
ptr
=
strchr
(
psz_ip
,
'\n'
);
if
(
ptr
==
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