Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
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
libdvbpsi
Commits
c68890a4
Commit
c68890a4
authored
Apr 11, 2014
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/dvbinfo/dvbinfo.c: Fix CID 17256, CID 172577 and CID 172578
Check filedescriptors for having a valid value.
parent
61a70397
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
examples/dvbinfo/dvbinfo.c
examples/dvbinfo/dvbinfo.c
+4
-4
No files found.
examples/dvbinfo/dvbinfo.c
View file @
c68890a4
...
@@ -214,15 +214,15 @@ static void params_free(params_t *param)
...
@@ -214,15 +214,15 @@ static void params_free(params_t *param)
static
void
dvbinfo_close
(
params_t
*
param
)
static
void
dvbinfo_close
(
params_t
*
param
)
{
{
#ifdef HAVE_SYS_SOCKET_H
#ifdef HAVE_SYS_SOCKET_H
if
(
param
->
input
&&
param
->
b_udp
)
if
(
param
->
input
&&
param
->
b_udp
&&
(
param
->
fd_in
>=
0
)
)
udp_close
(
param
->
fd_in
);
udp_close
(
param
->
fd_in
);
else
if
(
param
->
input
&&
param
->
b_tcp
)
else
if
(
param
->
input
&&
param
->
b_tcp
&&
(
param
->
fd_in
>=
0
)
)
tcp_close
(
param
->
fd_in
);
tcp_close
(
param
->
fd_in
);
else
else
#endif
#endif
if
(
param
->
input
)
if
(
param
->
input
&&
(
param
->
fd_in
>=
0
)
)
close
(
param
->
fd_in
);
close
(
param
->
fd_in
);
if
(
param
->
output
)
if
(
param
->
output
&&
(
param
->
fd_out
>=
0
)
)
close
(
param
->
fd_out
);
close
(
param
->
fd_out
);
}
}
...
...
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