Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
62669862
Commit
62669862
authored
Nov 26, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pick IPv6 scope ID from group address, instead of source address
Fix possible segfault as a side-effect
parent
30b35035
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
11 deletions
+21
-11
src/network/udp.c
src/network/udp.c
+21
-11
No files found.
src/network/udp.c
View file @
62669862
...
...
@@ -351,22 +351,13 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
#ifdef AF_INET6
case
AF_INET6
:
level
=
SOL_IPV6
;
if
((
src
!=
NULL
)
&&
memcmp
(
&
((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_addr
,
&
in6addr_any
,
sizeof
(
in6addr_any
))
==
0
)
src
=
NULL
;
if
(((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_scope_id
)
iid
=
((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_scope_id
;
if
(((
const
struct
sockaddr_in6
*
)
grp
)
->
sin6_scope_id
)
iid
=
((
const
struct
sockaddr_in6
*
)
grp
)
->
sin6_scope_id
;
break
;
#endif
case
AF_INET
:
level
=
SOL_IP
;
if
((
src
!=
NULL
)
&&
((
const
struct
sockaddr_in
*
)
src
)
->
sin_addr
.
s_addr
==
INADDR_ANY
)
src
=
NULL
;
break
;
default:
...
...
@@ -374,6 +365,25 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
return
-
1
;
}
if
(
src
!=
NULL
)
switch
(
src
->
sa_family
)
{
#ifdef AF_INET6
case
AF_INET6
:
if
(
memcmp
(
&
((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_addr
,
&
in6addr_any
,
sizeof
(
in6addr_any
))
==
0
)
src
=
NULL
;
break
;
#endif
case
AF_INET
:
if
(((
const
struct
sockaddr_in
*
)
src
)
->
sin_addr
.
s_addr
==
INADDR_ANY
)
src
=
NULL
;
break
;
}
/* Agnostic ASM/SSM multicast join */
#ifdef MCAST_JOIN_SOURCE_GROUP
union
...
...
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