Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
acbb80d1
Commit
acbb80d1
authored
May 31, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix use-after-free (CID 129)
bugfix-only - the network code has been completely rewritten since
parent
b5befe56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
modules/misc/network/ipv4.c
modules/misc/network/ipv4.c
+3
-6
No files found.
modules/misc/network/ipv4.c
View file @
acbb80d1
...
@@ -279,9 +279,6 @@ static int OpenUDP( vlc_object_t * p_this )
...
@@ -279,9 +279,6 @@ static int OpenUDP( vlc_object_t * p_this )
else
else
imr
.
imr_interface
.
s_addr
=
INADDR_ANY
;
imr
.
imr_interface
.
s_addr
=
INADDR_ANY
;
if
(
psz_if_addr
!=
NULL
)
free
(
psz_if_addr
);
msg_Dbg
(
p_this
,
"IP_ADD_SOURCE_MEMBERSHIP multicast request"
);
msg_Dbg
(
p_this
,
"IP_ADD_SOURCE_MEMBERSHIP multicast request"
);
/* Join Multicast group with source filter */
/* Join Multicast group with source filter */
...
@@ -368,8 +365,6 @@ igmpv2:
...
@@ -368,8 +365,6 @@ igmpv2:
if
(
hiphlpapi
)
FreeLibrary
(
hiphlpapi
);
if
(
hiphlpapi
)
FreeLibrary
(
hiphlpapi
);
}
}
#endif
#endif
if
(
psz_if_addr
!=
NULL
)
free
(
psz_if_addr
);
msg_Dbg
(
p_this
,
"IP_ADD_MEMBERSHIP multicast request"
);
msg_Dbg
(
p_this
,
"IP_ADD_MEMBERSHIP multicast request"
);
/* Join Multicast group without source filter */
/* Join Multicast group without source filter */
if
(
setsockopt
(
i_handle
,
IPPROTO_IP
,
IP_ADD_MEMBERSHIP
,
if
(
setsockopt
(
i_handle
,
IPPROTO_IP
,
IP_ADD_MEMBERSHIP
,
...
@@ -378,9 +373,11 @@ igmpv2:
...
@@ -378,9 +373,11 @@ igmpv2:
msg_Err
(
p_this
,
"failed to join IP multicast group (%s)"
,
msg_Err
(
p_this
,
"failed to join IP multicast group (%s)"
,
strerror
(
errno
)
);
strerror
(
errno
)
);
close
(
i_handle
);
close
(
i_handle
);
free
(
psz_if_addr
);
return
0
;
return
0
;
}
}
}
}
free
(
psz_if_addr
);
}
}
#if !defined (__linux__) && !defined (WIN32)
#if !defined (__linux__) && !defined (WIN32)
...
...
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