Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
00d87eb1
Unverified
Commit
00d87eb1
authored
Apr 15, 2020
by
Christian Brauner
Committed by
Stéphane Graber
Apr 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: add additional check to lxc_cmd_sock_get_state()
to please Coverity. Fixes: Coverity 1461732. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a1232a57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
commands_utils.c
src/lxc/commands_utils.c
+4
-1
No files found.
src/lxc/commands_utils.c
View file @
00d87eb1
...
...
@@ -62,11 +62,14 @@ int lxc_cmd_sock_get_state(const char *name, const char *lxcpath,
ret
=
lxc_cmd_add_state_client
(
name
,
lxcpath
,
states
,
&
state_client_fd
);
if
(
ret
<
0
)
return
-
1
;
return
ret_errno
(
EINVAL
)
;
if
(
ret
<
MAX_STATE
)
return
ret
;
if
(
state_client_fd
<
0
)
return
ret_errno
(
EBADF
);
return
lxc_cmd_sock_rcv_state
(
state_client_fd
,
timeout
);
}
...
...
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