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
f69f8352
Commit
f69f8352
authored
Jul 13, 2013
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential use-after-free (cid #1047503)
psz_realhost is an alias to psz_socks when using socks.
parent
dea05a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/network/tcp.c
src/network/tcp.c
+2
-1
No files found.
src/network/tcp.c
View file @
f69f8352
...
...
@@ -138,14 +138,15 @@ int net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
},
*
res
;
int
val
=
vlc_getaddrinfo
(
psz_realhost
,
i_realport
,
&
hints
,
&
res
);
free
(
psz_socks
);
if
(
val
)
{
msg_Err
(
p_this
,
"cannot resolve %s port %d : %s"
,
psz_realhost
,
i_realport
,
gai_strerror
(
val
));
free
(
psz_socks
);
return
-
1
;
}
free
(
psz_socks
);
int
timeout
=
var_InheritInteger
(
p_this
,
"ipv4-timeout"
);
if
(
timeout
<
0
)
...
...
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