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
6414dbd6
Commit
6414dbd6
authored
Jun 20, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/net.c: Better fix for Cygwin.
parent
c754f632
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
src/misc/net.c
src/misc/net.c
+3
-9
No files found.
src/misc/net.c
View file @
6414dbd6
...
...
@@ -1180,11 +1180,10 @@ static int SocksHandshakeTCP( vlc_object_t *p_obj,
int
__net_CheckIP
(
vlc_object_t
*
p_this
,
char
*
psz_ip
,
char
**
ppsz_hosts
,
int
i_hosts
)
{
#ifdef HAVE_ARPA_INET_H
struct
in_addr
ip
;
int
i
;
if
(
!
inet_aton
(
psz_ip
,
&
ip
)
)
if
(
(
ip
.
s_addr
=
inet_addr
(
psz_ip
))
==
INADDR_NONE
)
{
return
VLC_EGENERIC
;
}
...
...
@@ -1208,12 +1207,12 @@ int __net_CheckIP( vlc_object_t *p_this, char *psz_ip, char **ppsz_hosts,
else
if
(
i_mask
==
0
)
mask
.
s_addr
=
INADDR_ANY
;
else
mask
.
s_addr
=
hton
s
(
ntohs
(
INADDR_NONE
)
<<
(
32
-
i_mask
)
);
mask
.
s_addr
=
hton
l
(
ntohl
(
INADDR_NONE
)
<<
(
32
-
i_mask
)
);
}
else
mask
.
s_addr
=
INADDR_NONE
;
if
(
!
inet_aton
(
psz_host
,
&
base
)
)
if
(
(
base
.
s_addr
=
inet_addr
(
psz_host
))
==
INADDR_NONE
)
{
msg_Err
(
p_this
,
"invalid base address %s"
,
psz_host
);
free
(
psz_host
);
...
...
@@ -1226,10 +1225,5 @@ int __net_CheckIP( vlc_object_t *p_this, char *psz_ip, char **ppsz_hosts,
}
return
VLC_FALSE
;
#else
msg_Err
(
p_this
,
"hosts checking is not supported on this OS"
);
return
VLC_FALSE
;
#endif
}
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